Re: [Lapackpp-devel] compile problem on linux
Status: Beta
Brought to you by:
cstim
From: Christian S. <sti...@tu...> - 2006-04-23 08:13:57
|
Hi, Am Samstag, 22. April 2006 22:52 schrieb Mateusz Kore=F1: > /usr/bin/ld: cannot find -llapack.2.0 > collect2: ld returned 1 exit status > > The configure script does something like this: > > checking if ATLAS should be used... yes > checking for ATLAS library... /usr/lib (libatlas.so.3.0) > checking for f77blas library... /usr/lib (libf77blas.so.3.0) > checking for cblas library... /usr/lib (libcblas.so.3.0) > checking whether ATLAS is usable... yes > checking for cheev_... no > checking for cheev_ in -llapack... no > checking for cheev_ in -llapack32... no > checking for cheev_ in -llapack_rs6k... no > checking for any lapack library... -llapack.2.0 > > I've got liblapack.so.2.0 in my /usr/lib > > My guess is that gcc looks only for lib*.so with -l option and doesn't see > lib*.so.* =46or any -lFOO in the gcc-command, the gcc will look for libFOO.so (if I=20 understood gcc correctly). In your case it is probably not correct to have= =20 =2Dllapack.2.0 anyway -- it should probably rather simply be -llapack.=20 =46irst potential Workaround: After ./configure in lapackpp, edit the file= =20 src/Makefile, look for the string "-llapack.2.0" and replace it by=20 "-llapack".=20 Second potential Workaround: In /usr/lib, make a symlink with the name=20 "lapack.so" to the existing "lapack.so.2.0". Thirdly, you should check the output of=20 /sbin/ldconfig -p | grep lapack and see under which names the liblapack.so.2.0 is listed. Regards, Christian |