Page 1 of 1

lapack.so.3 seems to hate me and visa versa.

PostPosted: Fri Feb 04, 2005 3:01 pm
by gerdeke
This little pain of a file seems to want to hind from me. I have installed lapack on our gentoo system 10 or 11 times now, and each install ends with the same product. The install seems to complete just fine... then I go to run gretlcli(the file requiring lapack) and it errors as follows.

shell> gretlcli
gretlcli: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory

This of course is caused because liblapack.so.3 was never installed.

again I have done this way to many times. and I have even done it with gentoo's emerge command. I really would love any suggestions anyone might have.

Thanks. :?

PostPosted: Thu Feb 17, 2005 2:59 pm
by Stan Tomov
If the question is how to install a shared LAPACK library you can do
for example the following. In the LAPACK's make include file make.inc change
Code: Select all
ARCH     = ar
ARCHFLAGS= cr
RANLIB   = echo
to
ARCH     = g77
ARCHFLAGS= -shared -o
RANLIB   = echo

and

LAPACKLIB    = lapack$(PLAT).a
TMGLIB       = tmglib$(PLAT).a
EIGSRCLIB    = eigsrc$(PLAT).a
LINSRCLIB    = linsrc$(PLAT).a
to
LAPACKLIB    = liblapack.so.3
TMGLIB       = libtmglib.so.3
EIGSRCLIB    = libeigsrc.so.3
LINSRCLIB    = liblinsrc.so.3

Then "make lib" will produce shared LAPACK library for your platform.
I hope this helps.
Stan

PostPosted: Tue Feb 22, 2005 2:04 pm
by gerdeke
Thanks for the help. The problem ended up being that when installing lapack the only lib file that was installed was the .a file. The needed file was the .so file. I finally found this file by installing atlas-lapack.

Thank you for the help :D