And the CMakeCache file is in the attachment.

Bo-Nan

SIOM, C.A.S.


2013/3/20 Bo-Nan JIANG <bonanjiang@gmail.com>
Hi, all
I come up with this error while building ALPS on Ubuntu 10.04 Lucid
Before compiling, I install all libraries and tools following the ALPS website.
but when I run sudo make, the following error happens:

Linking Fortran executable tebd
CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__':
tebd.f90:(.text+0x962): undefined reference to `omp_get_num_procs_'
tebd.f90:(.text+0xa48): undefined reference to `omp_set_num_threads_'
collect2: ld returned 1 exit status
make[2]: *** [applications/dmrg/tebd/tebd] Error 1
make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2
make: *** [all] Error 2

I do not know what's going on. What I do before "make" is :

------------------------------------INPUT COMMAND LINE--------------------------
sudo cmake -D ALPS_BUILD_FORTRAN=ON -D BLAS_LIBRARY=/usr/lib/libblas.so -D
LAPACK_LIBRARY=/usr/lib/liblapack.so -D
Boost_ROOT_DIR:PATH=/home/jiang/src/alps2/boost
/home/jiang/src/alps2/alps

sudo cmake -DCMAKE_INSTALL_PREFIX=/opt/alps /home/jiang/alps2/alps

sudo make
---------------------------END---------------------------------
Any advice is welcome and helpful.
Bo-Nan



--
Stay foolish,Stay hungry.



--
Stay foolish,Stay hungry.