I extracted the download that includes boost. I cd into the un tared directory. In it has two folders, boost and alps. This is where I run the cmake command from. 



-------- Original message --------
From: Matthias Troyer <troyer@phys.ethz.ch>
Date: 08/10/2013 5:38 PM (GMT-05:00)
To: comp-phys-alps-users@lists.phys.ethz.ch
Cc: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] Alps Not Installing


It looks rom your log that you specify the wrong Directory for your Boost installation




On Aug 10, 2013, at 14:44, Will Dixon <dixonwille@hotmail.com> wrote:

I am getting errors when trying to compile Alps from source using gcc 4.8.1 and installed hdf5 through apt-get install libhdf5-serial-dev. I am using Ubuntu server 12.04 LTS. I also have openMPI 1.6.5 installed. Here is the error I am getting.

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /storage/gcc/4.8.1/bin/gcc
-- Check for working C compiler: /storage/gcc/4.8.1/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /storage/gcc/4.8.1/bin/c++
-- Check for working CXX compiler: /storage/gcc/4.8.1/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Release
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.3
-- PYTHON_INCLUDE_DIRS =  /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-lssl -lcrypto  -lssl -lcrypto      -L/usr/lib -lz -lpthread -ldl  -lutil
-- PYTHON_LINK_FOR_SHARED =  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- ALPS version: 2.1.1
-- Looking for rpc/rpc.h
-- Looking for rpc/rpc.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/systeminfo.h
-- Looking for sys/systeminfo.h - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for C++ include valarray
-- Looking for C++ include valarray - found
-- Looking for Boost Source
CMake Error at config/FindBoostSrc.cmake:85 (file):
  file Internal CMake error when trying to open file:
  /root/Cluster/alps-2.1.1-r6176-src-with-boost/alps/./boost/boost/version.hpp
  for reading.
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:90 (MATH):
  math cannot parse the expression: " / 100000": syntax error, unexpected
  exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:91 (MATH):
  math cannot parse the expression: " / 100 % 1000": syntax error, unexpected
  exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:92 (MATH):
  math cannot parse the expression: " % 100": syntax error, unexpected
  exp_MOD, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


-- Found Boost Source: ./boost
-- Boost Version: __
-- Found MPI_C: /storage/openmpi/1.6.5/lib/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so 
-- Found MPI_CXX: /storage/openmpi/1.6.5/lib/libmpi_cxx.so;/storage/openmpi/1.6.5/lib/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so 
-- MPI compiler was /storage/openmpi/1.6.5/bin/mpicxx
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /storage/gcc/4.8.1/bin/gfortran
-- Check for working Fortran compiler: /storage/gcc/4.8.1/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /storage/gcc/4.8.1/bin/gfortran supports Fortran 90
-- Checking whether /storage/gcc/4.8.1/bin/gfortran supports Fortran 90 -- yes
Falling back to CMake provied LAPACK/BLAS detection.
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- A library with BLAS API found.
-- A library with BLAS API found.
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
-- SQLite Library: not found
-- Found FFTW: /usr/lib/libfftw3.so 
-- LPSolve Library: not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so 
-- Could NOT find SZIP (missing:  SZIP_LIBRARIES SZIP_INCLUDE_DIRS) 
-- Found HDF5: debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so 
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.3
-- PYTHON_INCLUDE_DIRS =  /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-lssl -lcrypto  -lssl -lcrypto      -L/usr/lib -lz -lpthread -ldl  -lutil
-- PYTHON_LINK_FOR_SHARED =  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- Numpy include in /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- ALPS XML dir is /storage/alps/2.1.1/lib/xml
-- Adding Boost dir: ./boost 
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- tebd will not be built
-- Configuring incomplete, errors occurred!

At first glance I thought it was HDF5 so I installed from source. But I also realized I needed szip again I installed from source. Then I get this error.

-- Build type: Release
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.3
-- PYTHON_INCLUDE_DIRS =  /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-lssl -lcrypto  -lssl -lcrypto      -L/usr/lib -lz -lpthread -ldl  -lutil
-- PYTHON_LINK_FOR_SHARED =  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- ALPS version: 2.1.1
-- Looking for Boost Source
CMake Error at config/FindBoostSrc.cmake:85 (file):
  file Internal CMake error when trying to open file:
  /root/Cluster/alps-2.1.1-r6176-src-with-boost/alps/./boost/boost/version.hpp
  for reading.
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:90 (MATH):
  math cannot parse the expression: " / 100000": syntax error, unexpected
  exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:91 (MATH):
  math cannot parse the expression: " / 100 % 1000": syntax error, unexpected
  exp_DIVIDE, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


CMake Error at config/FindBoostSrc.cmake:92 (MATH):
  math cannot parse the expression: " % 100": syntax error, unexpected
  exp_MOD, expecting exp_OPENPARENT or exp_NUMBER (2)
Call Stack (most recent call first):
  config/FindBoostForALPS.cmake:61 (find_package)
  CMakeLists.txt:248 (find_package)


-- Found Boost Source: ./boost
-- Boost Version: __
-- Found MPI_Fortran: /storage/openmpi/1.6.5/lib/libmpi_f90.so;/storage/openmpi/1.6.5/lib/libmpi_f77.so;/storage/openmpi/1.6.5/lib/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so 
-- MPI compiler was /storage/openmpi/1.6.5/bin/mpicxx
Falling back to CMake provied LAPACK/BLAS detection.
-- A library with BLAS API found.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- SQLite Library: not found
-- LPSolve Library: not found
-- Could NOT find SZIP (missing:  SZIP_LIBRARIES SZIP_INCLUDE_DIRS) 
-- Found HDF5: debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_DEBUG-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_RELEASE-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so 
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_DEBUG-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_RELEASE-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.3
-- PYTHON_INCLUDE_DIRS =  /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-lssl -lcrypto  -lssl -lcrypto      -L/usr/lib -lz -lpthread -ldl  -lutil
-- PYTHON_LINK_FOR_SHARED =  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- Numpy include in /storage/numpy/1.7.0/lib/python2.7/site-packages/numpy/core/include
-- ALPS XML dir is /storage/alps/2.1.1/lib/xml
-- Adding Boost dir: ./boost 
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_DEBUG-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_RELEASE-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- HDF5: /usr/include debug;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_DEBUG-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;optimized;/usr/lib/libhdf5_hl.so;/usr/lib/libhdf5.so;HDF5_sz_LIBRARY_RELEASE-NOTFOUND;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- tebd will not be built
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_sz_LIBRARY_DEBUG (ADVANCED)
    linked by target "alps" in directory /root/Cluster/alps-2.1.1-r6176-src-with-boost/alps/src/alps
HDF5_sz_LIBRARY_RELEASE (ADVANCED)
    linked by target "alps" in directory /root/Cluster/alps-2.1.1-r6176-src-with-boost/alps/src/alps

-- Configuring incomplete, errors occurred!

But it still says it can't find szip. I am following the instructions on http://alps.comp-phys.org/mediawiki/index.php/Building_ALPS_from_source 

I am using
cmake -D Boost_ROOT_DIR:PATH=./boost -DCMAKE_INSTALL_PREFIX=/storage/alps/2.1.1 ./alps

THANKS IN ADVANCED