best regards,Dear Michele,I tried it yesterday with some errors that I will post below. I thought that problem is with hdf5 because in output I send in previous mail was something about
HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- tebd will not be builtbut maybe it is something else. Here comes output from command: sudo make
[ 28%] Building CXX object src/boost/CMakeFiles/boost.dir/__/__/__/boost/libs/thread/src/pthread/once.cpp.o
[ 28%] Building CXX object src/boost/CMakeFiles/boost.dir/__/__/__/boost/libs/thread/src/pthread/thread.cpp.o
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr.h:148,
from /usr/include/c++/4.8/ext/atomicity.h:35,
from /usr/include/c++/4.8/bits/basic_string.h:39,
from /usr/include/c++/4.8/string:52,
from /home/arymanus/src/alps2/boost/boost/thread/exceptions.hpp:19,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/thread_data.hpp:9,
from /home/arymanus/src/alps2/boost/boost/thread/thread.hpp:17,
from /home/arymanus/src/alps2/boost/libs/thread/src/pthread/thread.cpp:10:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
TIME_UTC=1
^
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
In file included from /home/arymanus/src/alps2/boost/boost/thread/pthread/mutex.hpp:14:0,
from /home/arymanus/src/alps2/boost/boost/thread/mutex.hpp:16,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/thread_data.hpp:12,
from /home/arymanus/src/alps2/boost/boost/thread/thread.hpp:17,
from /home/arymanus/src/alps2/boost/libs/thread/src/pthread/thread.cpp:10:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
operator system_time() const
^
In file included from /home/arymanus/src/alps2/boost/boost/thread/pthread/mutex.hpp:14:0,
from /home/arymanus/src/alps2/boost/boost/thread/mutex.hpp:16,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/thread_data.hpp:12,
from /home/arymanus/src/alps2/boost/boost/thread/thread.hpp:17,
from /home/arymanus/src/alps2/boost/libs/thread/src/pthread/thread.cpp:10:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
*xtp=get_xtime(get_system_time());
^
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /home/arymanus/src/alps2/boost/boost/thread/locks.hpp:12:0,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/mutex.hpp:12,
from /home/arymanus/src/alps2/boost/boost/thread/mutex.hpp:16,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/thread_data.hpp:12,
from /home/arymanus/src/alps2/boost/boost/thread/thread.hpp:17,
from /home/arymanus/src/alps2/boost/libs/thread/src/pthread/thread.cpp:10:
/home/arymanus/src/alps2/boost/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
inline system_time get_system_time()
^
In file included from /home/arymanus/src/alps2/boost/boost/thread/pthread/mutex.hpp:14:0,
from /home/arymanus/src/alps2/boost/boost/thread/mutex.hpp:16,
from /home/arymanus/src/alps2/boost/boost/thread/pthread/thread_data.hpp:12,
from /home/arymanus/src/alps2/boost/boost/thread/thread.hpp:17,
from /home/arymanus/src/alps2/boost/libs/thread/src/pthread/thread.cpp:10:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp: At global scope:
/home/arymanus/src/alps2/boost/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
} // namespace boost
^
make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/__/boost/libs/thread/src/pthread/thread.cpp.o] Error 1
make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2
make: *** [all] Error 2
Rafał2013/10/23 Michele Dolfi <dolfim@phys.ethz.ch>
Dear Rafał,What is exactly your problem? The output that you copy in the mail seems ok to me. Have you tried to continue the build process by typing make and make install?Best regards,Michele--ETH ZurichMichele DolfiInstitute for Theoretical PhysicsHIT G 32.4Wolfgang-Pauli-Str. 278093 ZurichSwitzerland+41 44 633 78 56 phone+41 44 633 11 15 faxOn 23-ott-2013, at 14:54, Rafał <arymanus@gmail.com> wrote:I made an folder for building. I installed dependencies withI have extracted alps and boost (from alps-2.1.1-r6176-src-with-boost.tar.gz) into separated folders in ~/src/.Hi all,For a long time I used alps on ubuntu 12.04 and I had no problem with the installation. Right know I wanted to try installing alps on ubuntu 13.10 and I encounter an problem that I can't solve.
sudo apt-get install cmake-curses-gui libboost-all-dev libhdf5-serial-dev libfftw3-dev gfortran python-matplotlib python-scipy python-h5py liblapack-dev xsltproc python-dev
I found some problem with hdf5 when building alps, that does not existed in ubuntu 12.04, so I installed hdf5 from sources like in:
http://www.hdfgroup.org/ftp/HDF5/current/src/unpacked/release_docs/INSTALL
adding --enable-fortran configure option.then I tried to execute in the build folder following command:
sudo cmake -D BLAS_LIBRARY=/usr/lib/libblas.so -D LAPACK_LIBRARY=/usr/lib/liblapack.so -D PYTHON_LIBRARY=/usr/lib/libpython2.7.so -D Boost_ROOT_DIR:PATH=/home/arymanus/src/alps2/boost HDF5_LIBRARIES=/usr/local/hdf5/lib -D HDF5_INCLUDE_DIR=/usr/local/hdf5/include/ /home/arymanus/src/alps2/alps
and result is below.
-- Build type: Release
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.5+
-- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/python2.7/dist-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-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
-- Found Boost Source: /home/arymanus/src/alps2/boost
-- Boost Version: 1_49_0
-- MPI compiler was /usr/bin/mpicxx
-- SQLite Library: not found
-- LPSolve Library: not found
-- Could NOT find SZIP (missing: SZIP_LIBRARIES SZIP_INCLUDE_DIRS)
-- Found HDF5: debug;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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;optimized;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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
-- HDF5: /usr/local/hdf5/include/;/usr/include debug;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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;optimized;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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 HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- Python interpreter /usr/bin/python
-- Python interpreter ok : version 2.7.5+
-- PYTHON_INCLUDE_DIRS = /usr/include/python2.7
-- PYTHON_NUMPY_INCLUDE_DIR = /usr/lib/python2.7/dist-packages/numpy/core/include
-- PYTHON_SITE_PKG = /usr/lib/python2.7/dist-packages
-- PYTHON_LIBRARY = /usr/lib/libpython2.7.so
-- PYTHON_EXTRA_LIBS =-L/usr/lib -lz -lpthread -ldl -lutil
-- PYTHON_LINK_FOR_SHARED = -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
-- Numpy include in /usr/lib/python2.7/dist-packages/numpy/core/include
-- ALPS XML dir is /opt/alps/lib/xml
-- Adding Boost dir: /home/arymanus/src/alps2/boost
-- HDF5: /usr/local/hdf5/include/;/usr/include debug;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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;optimized;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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 HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- HDF5: /usr/local/hdf5/include/;/usr/include debug;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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;optimized;/usr/lib/x86_64-linux-gnu/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.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 HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND;HDF5_DLL-NOTFOUND;HDF5_HL_DLL-NOTFOUND
-- tebd will not be built
-- Configuring done
-- Generating done
-- Build files have been written to: /home/arymanus/srcI have no idea how to solve this problem I will be very glad for your help.
Best regards,
Rafał Skolasinski