Using LAPACK64 on new CentOS 7 system (Red Hat Enterprise Linux 7)

117 views
Skip to first unread message

Erricos C. Pavlis

unread,
Mar 4, 2018, 8:13:52 PM3/4/18
to lap...@icl.utk.edu
Hi,

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

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Dr. Erricos C. Pavlis                            Phone:+1 (410)-455-5832
  Research Professor                              FAX:  +1 (410)-455-5868
                                                     US Mobile:   +1-(240)-381-9879
                                                     EU Mobile:    +30-694-241-5079
  
  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
  U S A    21250                     epa...@umbc.edu

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




Julie Langou

unread,
Mar 4, 2018, 8:24:11 PM3/4/18
to Erricos C. Pavlis, lap...@icl.utk.edu
Dear Erricos
 Try -llapack64
gfortran -o ge1802p1_i64.x -L/usr/lib64 -llapack64 cgmass_module.o MSSGFC_MOD.o 

Hope it helps
Julie
--
LAPACK library Website: http://www.netlib.org/lapack/
---
You received this message because you are subscribed to the Google Groups "LAPACK Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lapack+un...@icl.utk.edu.
To post to this group, send email to lap...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/lapack/40E2AD17-1AD9-48BA-A4A5-17AF9DDD5AD5%40umbc.edu.
For more options, visit https://groups.google.com/a/icl.utk.edu/d/optout.

Erricos C. Pavlis

unread,
Mar 15, 2018, 12:13:49 AM3/15/18
to Julie Langou, lap...@icl.utk.edu
Thank you Julie, it turns out it was a problem with an incorrect installation of your libraries on our system! All is well now, thanks for replying though!

ecp
Reply all
Reply to author
Forward
0 new messages