I have been using LAPACK on our Linux cluster for years now without any problems. I compile our main s/w package with GNU’s gfortran and link as follows:
gfortran -o ge1507p6_i64.x cgmass_module.o ge1507p6_i64.o mssgfc_mod.o -llapack
We are in the process of changing to a new server that runs CentOS 7 and I am told that the new system has LAPACK, LAPACK64, etc. which I need to link to, all of them under /usr/lib64:
/usr/lib64 854 > ll liblapack*
lrwxrwxrwx 1 root root 20 Feb 20 11:29 liblapack64.so.3 -> liblapack64.so.3.4.2
lrwxrwxrwx 1 root root 20 Feb 20 11:29 liblapack64.so.3.4 -> liblapack64.so.3.4.2
-rwxr-xr-x 1 root root 5634192 Aug 2 2017 liblapack64.so.3.4.2
lrwxrwxrwx 1 root root 19 Jan 10 13:14 liblapacke.so.3 -> liblapacke.so.3.4.2
lrwxrwxrwx 1 root root 19 Jan 10 13:14 liblapacke.so.3.4 -> liblapacke.so.3.4.2
-rwxr-xr-x 1 root root 1965960 Aug 2 2017 liblapacke.so.3.4.2
lrwxrwxrwx 1 root root 18 Jan 10 13:14 liblapack.so.3 -> liblapack.so.3.4.2
lrwxrwxrwx 1 root root 18 Jan 10 13:14 liblapack.so.3.4 -> liblapack.so.3.4.2
-rwxr-xr-x 1 root root 5638352 Aug 2 2017 liblapack.so.3.4.2
I am also told by the folks that administer this system that I need to set an environmental variable in my .profile file as follows in order that the loader can find these files:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
When I do all this and try to compile our s/w I keep getting an error:
gfortran -o ge1802p1_i64.x -L/usr/lib64 -lliblapack64 cgmass_module.o MSSGFC_MOD.o
/usr/bin/ld: cannot find -lliblapack64
collect2: error: ld returned 1 exit status
What is happening here? When I visit /usr/lib64 I see that the files exist, with the library path defined, why can’t they be found?
Thanks for any hints, I tried to find similar problems reported online but it seems there have not been any so far…
ecp
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chair, ILRS Analysis Standing Committee
Editor, The European Physical Journal Plus
Assoc. Editor, Celestial Mechanics & Dynamical Astronomy
Joint Center for Earth Systems Technology, (JCET/UMBC)
University of Maryland, BC & NASA Goddard 61A
TRC #182
1000 Hilltop Circle
Baltimore, Maryland
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++