lapack and blas libraries problem

Moderators: cyao, soliday

Post Reply
dpe
Posts: 29
Joined: 21 Mar 2012, 05:35

lapack and blas libraries problem

Post by dpe » 21 Mar 2012, 08:49

Hi everybody, I'm compiling elegant on an ArchLinux 64 bits following the Soliday guide.
I'm nearly gone but when I give the command make into oag/apps/src/elegant the compilation stops with the following error

Code: Select all

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
but both the packages lapack and blas are correctely installed on my system from the repository.
Moreover I checked giving the command:

Code: Select all

# ldconfig -p | grep lapack
	liblapack.so.3 (libc6,x86-64) => /usr/lib/liblapack.so.3
	liblapack.so (libc6,x86-64) => /usr/lib/liblapack.so
# ldconfig -p | grep blas
   ...
	libblas.so.3 (libc6,x86-64) => /usr/lib/libblas.so.3
	libblas.so (libc6,x86-64) => /usr/lib/libblas.so
so both of the libraries seem to be there.

I really can't understand what is the problem. Any idea would be much appreciated... Thanks!

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: lapack and blas libraries problem

Post by soliday » 21 Mar 2012, 09:06

By default it tries to build a static version of elegant because that makes it easier for me to distribute to more Linux operating systems. This means it is not trying to link against /usr/lib/liblapack.so but /usr/lib/liblapack.a instead. I am guessing your system does not have the static version of lapack and blas installed. You can either install them or you can edit the elegant/Makefile.OAG and add STATIC_BUILD=NO to the top line.

dpe
Posts: 29
Joined: 21 Mar 2012, 05:35

Re: lapack and blas libraries problem

Post by dpe » 21 Mar 2012, 09:23

Thank you very much for your fast assistance. I think I would never be able to find a solution for this. I have completed the compilation now.

Post Reply