Compilation error in QCMaquis with OpenMolcas
Hi, I am trying to compile QCMaquis with DMRG in OpenMolcas. I am having problem in the compilation of DMRG module. I got the OpenMolcas with this command:
git clone https://gitlab.com/Molcas/OpenMolcas.git
And compile the code with:
CC=gcc CXX=g++ FC=gfortran cmake -DLINALG=MKL -DDMRG=ON -DNEVPT2=ON -DCMAKE_INSTALL_PREFIX=/user/openmolcas+q/OpenMolcas_q ..
When it goes to the final part of DMRG, I got this error:
[ 95%] Building CXX object applications/tools/CMakeFiles/mps_transform_pg.dir/mps_transform.cpp.o
[ 97%] Linking CXX executable dmrg_meas
[ 98%] Linking CXX executable dmrg
/opt/apps/gcc/9.1.0/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgsl
/opt/apps/gcc/9.1.0/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgslcblas
collect2: error: ld returned 1 exit status
make[5]: *** [applications/measure/dmrg_meas] Error 1
make[4]: *** [applications/measure/CMakeFiles/dmrg_meas.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
/opt/apps/gcc/9.1.0/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgsl
/opt/apps/gcc/9.1.0/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgslcblas
I suppose that it cannot find the libgslcblas.so and libgsl.so from GSL library, but I can clearly see the correct paths in CMakeCache.txt:
GSL_CBLAS_LIBRARY:FILEPATH=/opt/gsl/gsl-2.6_gcc/lib/libgslcblas.so
GSL_CBLAS_LIBRARY_DEBUG:FILEPATH=/opt/gsl/gsl-2.6_gcc/lib/libgslcblas.so
GSL_LIBRARY:FILEPATH=/opt/gsl/gsl-2.6_gcc/lib/libgsl.so
GSL_LIBRARY_DEBUG:FILEPATH=/opt/gsl/gsl-2.6_gcc/lib/libgsl.so
Any suggestions would be highly appreciate.
Edited by Rainy Xu