cmake -D Boost_ROOT_DIR:PATH=/path to alps directory/boost -DCMAKE_INSTALL_PREFIX=/storage/alps/2.1.1 /path to alps directory/alps
I ran this and it still didn't work. It is giving me the same errors.
Sent from Samsung tablet
-------- Original message --------
From: Matthias Troyer <troyer(a)phys.ethz.ch>
Date: 08/10/2013 7:45 PM (GMT-05:00)
To: dixonwille <dixonwille(a)hotmail.com>
Cc: Alps <comp-phys-alps-users(a)lists.phys.ethz.ch>
Subject: Re: [ALPS-users] Alps Not Installing
CMAKE requires the use of absolute paths and not ./...
On Aug 10, 2013, at 16:41, dixonwille <dixonwille(a)hotmail.com> wrote:
cmake -D Boost_ROOT_DIR:PATH=./boost -DCMAKE_INSTALL_PREFIX=/storage/alps/2.1.1 ./alps
While I am in a freshly extracted directoryl of alps-2.1.1-r6176-src-with-boost.tar.gz
-------- Original message --------
From: Matthias Troyer <troyer(a)phys.ethz.ch>
Date: 08/10/2013 6:37 PM (GMT-05:00)
To: dixonwille <dixonwille(a)hotmail.com>,comp-phys-alps-users(a)lists.phys.ethz.ch
Subject: Re: [ALPS-users] Alps Not Installing
What command do you run exactly? From the log it seems that you do not specify the correct directory for boost
On Aug 10, 2013, at 15:43, dixonwille <dixonwille(a)hotmail.com> wrote:
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(a)phys.ethz.ch>
Date: 08/10/2013 5:38 PM (GMT-05:00)
To: comp-phys-alps-users(a)lists.phys.ethz.ch
Cc: comp-phys-alps-users(a)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(a)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