Thank you. It seems to build now.
-- Found Boost Source: /home/cces/Downloads/ALPS/CMake Deprecation Warning at CMakeLists.txt:132 (cmake_policy):
The OLD behavior for policy CMP0042 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiler version: c++ (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
-- Build type: Release
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.12
-- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /home/cces/.local/lib/python2.7/site-packages/numpy/core/ include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-L/usr/lib -lz -lpthread -ldl -lutil -Wl,-Bsymbolic-functions -Wl,-z,relro
-- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- ALPS version: 2.3.0
-- 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
alps-2.3.0-src-with-boost/ boost
-- Boost Version: 1_63_0
-- Adding Boost dir: /home/cces/Downloads/ALPS/alps-2.3.0-src-with-boost/ boost
-- Configuring done-- Found MPI_C: /usr/lib/openmpi/lib/libmpi.so (found version "3.0")
-- Found MPI_CXX: /usr/lib/openmpi/lib/libmpi_cxx.so (found version "3.0")
-- Found MPI: TRUE (found version "3.0")
-- MPI compiler was /usr/bin/mpicxx
-- Falling back to CMake provied LAPACK/BLAS detection.
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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
-- Found BLAS: /usr/lib/libblas.so
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- SQLite Library: not found
-- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so
-- LPSolve Library: not found
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
-- Found SZIP: /usr/lib/x86_64-linux-gnu/libsz.so
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so; /usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5.so;/ usr/lib/x86_64-linux-gnu/ libpthread.so;/usr/lib/x86_64- linux-gnu/libsz.so;/usr/lib/ x86_64-linux-gnu/libz.so;/usr/ lib/x86_64-linux-gnu/libdl.so; /usr/lib/x86_64-linux-gnu/ libm.so
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.12
-- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /home/cces/.local/lib/python2.7/site-packages/numpy/core/ include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-L/usr/lib -lz -lpthread -ldl -lutil -Wl,-Bsymbolic-functions -Wl,-z,relro
-- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- Numpy include in /home/cces/.local/lib/python2.7/site-packages/numpy/core/ include
-- ALPS XML dir is /opt/alps/lib/xml
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so; /usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5.so;/ usr/lib/x86_64-linux-gnu/ libpthread.so;/usr/lib/x86_64- linux-gnu/libsz.so;/usr/lib/ x86_64-linux-gnu/libz.so;/usr/ lib/x86_64-linux-gnu/libdl.so; /usr/lib/x86_64-linux-gnu/ libm.so;/usr/lib/x86_64-linux- gnu/hdf5/serial/lib/libhdf5_ hl.so;/usr/lib/x86_64-linux- gnu/hdf5/serial/lib/libhdf5. so;/usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5_hl.so; /usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5.so;/ usr/lib/x86_64-linux-gnu/ libpthread.so;/usr/lib/x86_64- linux-gnu/libsz.so;/usr/lib/ x86_64-linux-gnu/libz.so;/usr/ lib/x86_64-linux-gnu/libdl.so; /usr/lib/x86_64-linux-gnu/ libm.so;/usr/lib/x86_64-linux- gnu/libpthread.so;/usr/lib/ x86_64-linux-gnu/libsz.so;/ usr/lib/x86_64-linux-gnu/libz. so;/usr/lib/x86_64-linux-gnu/ libdl.so;/usr/lib/x86_64- linux-gnu/libm.so
-- MPS: enabling NU1 symmetry.
-- tebd will not be built
-- Generating done
-- Build files have been written to: /home/cces/Downloads/ALPS/alps-2.3.0-src-with-boost/ alps/build
Hope I can use examples now.
Thanks you,
Santu
On 20 July 2018 at 11:13, Synge Todo <wistaria@phys.s.u-tokyo.ac.jp> wrote:
I think that Boost_ROOT_DIR is not specified correctly. It should be
-DBoost_ROOT_DIR:PATH=/home/cces/Downloads/ALPS/alps-2.3.0- src-with-boost/boost
Best,
Synge
> 2018/07/20 10:49、S Baidya <santubaidya2009@gmail.com>のメール:
> <CMakeError.log>>
> Thank you for your reply. I downloaded alps-2.3.0-src-with-boost.tar.gz and make build and then
>
> sudo /usr/local/bin/cmake -DBoost_ROOT_DIR:PATH=/home/cces/Downloads/boost_1_67_0/boos t /home/cces/Downloads/ALPS/alps -2.3.0-src-with-boost/alps/
>
> But it still shows error. Last few lines of cmake are:
>
> CMake Deprecation Warning at CMakeLists.txt:132 (cmake_policy):
> The OLD behavior for policy CMP0042 will be removed from a future version
> of CMake.
>
> The cmake-policies(7) manual explains that the OLD behaviors of all
> policies are deprecated and that a policy should be set to OLD only under
> specific short-term circumstances. Projects should be ported to the NEW
> behavior and not rely on setting a policy to OLD.
>
>
> -- The C compiler identification is GNU 5.5.0
> -- The CXX compiler identification is GNU 5.5.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Compiler version: c++ (Ubuntu 5.5.0-12ubuntu1~16.04) 5.5.0 20171010
> -- Build type: Release
> -- Python interpreter /usr/bin/python
> -- Python interpreter ok : version 2.7.12
> -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
> -- PYTHON_NUMPY_INCLUDE_DIR = /home/cces/.local/lib/python2.7/site-packages/numpy/core/inc lude
> -- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
> -- PYTHON_LIBRARY = /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
> -- PYTHON_EXTRA_LIBS =-L/usr/lib -lz -lpthread -ldl -lutil -Wl,-Bsymbolic-functions -Wl,-z,relro
> -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
> -- ALPS version: 2.3.0
> -- 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:89 (file):
> file failed to open for reading (No such file or directory):
>
> /home/cces/Downloads/boost_1_67_0/boost/boost/version.hpp
> Call Stack (most recent call first):
> config/FindBoostForALPS.cmake:75 (find_package)
> CMakeLists.txt:294 (find_package)
>
>
> CMake Error at config/FindBoostSrc.cmake:94 (MATH):
> MATH cannot parse the expression: " / 100000": syntax error, unexpected
> exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
> (2)
> Call Stack (most recent call first):
> config/FindBoostForALPS.cmake:75 (find_package)
> CMakeLists.txt:294 (find_package)
>
>
> CMake Error at config/FindBoostSrc.cmake:95 (MATH):
> MATH cannot parse the expression: " / 100 % 1000": syntax error, unexpected
> exp_DIVIDE, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
> (2)
> Call Stack (most recent call first):
> config/FindBoostForALPS.cmake:75 (find_package)
> CMakeLists.txt:294 (find_package)
>
>
> CMake Error at config/FindBoostSrc.cmake:96 (MATH):
> MATH cannot parse the expression: " % 100": syntax error, unexpected
> exp_MOD, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
> (2)
> Call Stack (most recent call first):
> config/FindBoostForALPS.cmake:75 (find_package)
> CMakeLists.txt:294 (find_package)
>
>
> -- Found Boost Source: /home/cces/Downloads/boost_1_67_0/boost
> -- Boost Version: __
> -- Adding Boost dir: /home/cces/Downloads/boost_1_67_0/boost
> -- Found MPI_C: /usr/lib/openmpi/lib/libmpi.so (found version "3.0")
> -- Found MPI_CXX: /usr/lib/openmpi/lib/libmpi_cxx.so (found version "3.0")
> -- Found MPI: TRUE (found version "3.0")
> -- MPI compiler was /usr/bin/mpicxx
> -- Falling back to CMake provied LAPACK/BLAS detection.
> -- Looking for sgemm_
> -- Looking for sgemm_ - found
> -- Looking for pthread.h
> -- Looking for pthread.h - found
> -- Looking for pthread_create
> -- Looking for pthread_create - not 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
> -- Found BLAS: /usr/lib/libblas.so
> -- Looking for cheev_
> -- Looking for cheev_ - found
> -- A library with LAPACK API found.
> -- SQLite Library: not found
> -- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so
> -- LPSolve Library: not found
> -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
> -- Found SZIP: /usr/lib/x86_64-linux-gnu/libsz.so
> -- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so;/ usr/lib/x86_64-linux-gnu/hdf5/ serial/lib/libhdf5.so;/usr/ lib/x86_64-linux-gnu/libpthrea d.so;/usr/lib/x86_64-linux- gnu/libsz.so;/usr/lib/x86_64- linux-gnu/libz.so;/usr/lib/ x86_64-linux-gnu/libdl.so;/ usr/lib/x86_64-linux-gnu/libm. so
> -- Python interpreter /usr/bin/python
> -- Python interpreter ok : version 2.7.12
> -- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
> -- PYTHON_NUMPY_INCLUDE_DIR = /home/cces/.local/lib/python2.7/site-packages/numpy/core/inc lude
> -- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
> -- PYTHON_LIBRARY = /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so
> -- PYTHON_EXTRA_LIBS =-L/usr/lib -lz -lpthread -ldl -lutil -Wl,-Bsymbolic-functions -Wl,-z,relro
> -- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
> -- Numpy include in /home/cces/.local/lib/python2.7/site-packages/numpy/core/inc lude
> -- ALPS XML dir is /opt/alps/lib/xml
> -- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so;/ usr/lib/x86_64-linux-gnu/hdf5/ serial/lib/libhdf5.so;/usr/ lib/x86_64-linux-gnu/libpthrea d.so;/usr/lib/x86_64-linux- gnu/libsz.so;/usr/lib/x86_64- linux-gnu/libz.so;/usr/lib/ x86_64-linux-gnu/libdl.so;/ usr/lib/x86_64-linux-gnu/libm. so;/usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5_hl.so; /usr/lib/x86_64-linux-gnu/ hdf5/serial/lib/libhdf5.so;/ usr/lib/x86_64-linux-gnu/hdf5/ serial/lib/libhdf5_hl.so;/usr/ lib/x86_64-linux-gnu/hdf5/ serial/lib/libhdf5.so;/usr/ lib/x86_64-linux-gnu/libpthrea d.so;/usr/lib/x86_64-linux- gnu/libsz.so;/usr/lib/x86_64- linux-gnu/libz.so;/usr/lib/ x86_64-linux-gnu/libdl.so;/ usr/lib/x86_64-linux-gnu/libm. so;/usr/lib/x86_64-linux-gnu/ libpthread.so;/usr/lib/x86_64- linux-gnu/libsz.so;/usr/lib/ x86_64-linux-gnu/libz.so;/usr/ lib/x86_64-linux-gnu/libdl.so; /usr/lib/x86_64-linux-gnu/ libm.so
> -- MPS: enabling NU1 symmetry.
> -- tebd will not be built
> -- Configuring incomplete, errors occurred!
> See also "/home/cces/Downloads/ALPS/alps-2.3.0-src-with-boost/alps/ build/CMakeFiles/CMakeOutput. log".
> See also "/home/cces/Downloads/ALPS/alps-2.3.0-src-with-boost/alps/ build/CMakeFiles/CMakeError. log".
>
>
> I have attached the CMakeError file.
>
>
> Please tell me why so many difficulties in installing ALPS and what is the solution.
>
> Thanks,
>
> Santu
>
>
>
>
> On 20 July 2018 at 08:48, Synge Todo <wistaria@phys.s.u-tokyo.ac.jp> wrote:
> Dear Santu,
>
> Please use ALPS version 2.3.0. Version 2.2 has a bug in checking
> the version of HDF5 library.
>
> Best,
> Synge
>
>
> > 2018/07/19 17:14、S Baidya <santubaidya2009@gmail.com>のメール:
> >
> > Thanks for your reply.
> > I have installed latest CMAKE in the path /usr/local/bin/cmake so I used
> >
> > /usr/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/home/cces/Downloads/ALPS/alps-2.2.b4 -src-with-boost/ /home/cces/Downloads/ALPS/alps -2.2.b4-src-with-boost/alps
> >
> > But it again gives me error as attached herewith this mail.
> >
> > The last few lines in the run gives :
> >
> > -- MKL settings were:
> > -- BLAS_LIBRARY =
> > -- LAPACK_LIBRARY = -L/opt/intel/compilers_and_libraries_2016.4.258/linux/mkl/ lib/em64t;-lmkl_lapack;-lmkl;- lguide;-lpthread;-lm
> > -- Falling back to CMake provied LAPACK/BLAS detection.
> > -- Looking for sgemm_
> > -- Looking for sgemm_ - found
> > -- Found BLAS: /usr/lib/libblas.so
> > -- Looking for cheev_
> > -- Looking for cheev_ - found
> > -- A library with LAPACK API found.
> > -- SQLite Library: not found
> > -- Found FFTW: /usr/lib/x86_64-linux-gnu/libfftw3.so
> > -- LPSolve Library: not found
> > -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so
> > -- Found SZIP: /usr/lib/x86_64-linux-gnu/libsz.so
> > -- Found HDF5: /home/cces/miniconda3/envs/myenv/lib/libhdf5_hl.so;/home/cce s/miniconda3/envs/myenv/lib/ libhdf5.so;/usr/lib/x86_64- linux-gnu/librt.so;/usr/lib/ x86_64-linux-gnu/libpthread. so;/home/cces/miniconda3/envs/ myenv/lib/libz.so;/usr/lib/ x86_64-linux-gnu/libdl.so;/ usr/lib/x86_64-linux-gnu/libm. so
> > CMake Error at config/FindHDF5.cmake:454 (MESSAGE):
> > The HDF5 include found is too old : version is 1.10.1 while the minimum is
> > 1.8
> > Call Stack (most recent call first):
> > CMakeLists.txt:415 (find_package)
> >
> >
> > -- Configuring incomplete, errors occurred!
> >
> > Please have a look and tell me the actual reason.
> >
> > Thanks,
> >
> > Santu
> >
> >
> >
> >
> >
> >
> >
> > On 19 July 2018 at 16:46, Rongyang Sun <sun-rongyang@outlook.com> wrote:
> > Dear Santu,
> >
> > You can follow this guide http://alps.comp-phys.org/mediawiki/index.php/Building_ALPS_ to build ALPS from source.from_source
> >
> > Follow your file structure, after `cd build` you can try:
> >
> > `cmake -DBoost_ROOT _DIR:PATH=/home/cces/Downloads/ALPS/alps-2.2.b4-src-with- boost/boost /home/cces/Downloads/ALPS/alps -2.2.b4-src-with-boost/alps`
> >
> > And the dependent libraries need also be installed carefully. If you meet any problems, please let me know.
> >
> > Best,
> > Rongyang
> >
> > Building ALPS from source - comp-phys.org
> > Libraries and tools needed to build ALPS. ALPS will need the following libraries and tools in addition to the ALPS sources: CMake version 2.8 or higher as a build system. ...
> > alps.comp-phys.org
> >
> >
> >
> >
> > From: Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch > on behalf of S Baidya <santubaidya2009@gmail.com>
> > Sent: Thursday, July 19, 2018 9:21
> > To: comp-phys-alps-users@lists.comp-phys.org
> > Subject: [ALPS-users] Problem in installing ALPS code in Ubuntu
> >
> > Dear ALPS users,
> >
> > I have downloaded alps-2.2.b4-src-with-boost.tar.gz in my linux pc with Ubuntu. I installed required python packages python2.7.
> >
> > I then untar by tar -xvzf alps-2.2.b4-src-with-boost.tar.gz
> >
> > Then mkdir build
> > Then cd build
> >
> > Then cmake -DCMAKE_INSTALL_PREFIX=/home/cces/Downloads/ALPS/alps-2.2.b4 -src-with-boost/alps/ ..
> >
> > I got an error. I tried different ways too using conda install but it did not work.
> >
> > So, I thought to build from source in linux as suggested in some websites.
> >
> > I have attached the Log file of the error.
> >
> > Can anyone please help me to install the alps in linux pc.
> >
> > I sent this mail before but I found there was an issue with maximum size of mail. So I have attached only one error file.
> >
> > Thanking you,
> >
> > Santu
> >
> >
> >
> >
> > ----
> > Comp-phys-alps-users Mailing List for the ALPS Project
> > http://alps.comp-phys.org/
> >
> > List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users
> > Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
> >
> > Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch .
> >
> > <CMakeError.log>
> >
> > ----
> > Comp-phys-alps-users Mailing List for the ALPS Project
> > http://alps.comp-phys.org/
> >
> > List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users
> > Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
> >
> > Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch .
>
>