You are not logged in.

#1 2012-03-21 11:20:31

DarioP
Member
From: Geneva
Registered: 2011-01-05
Posts: 165

[SOLVED] Problem with shared library liblpack libblas

Hi everybody, I'm compiling elegant which is a program to simulate particle accelerator, and I'm having troubles with the libraries liblpack and libblas.

The makefile stops with the following error

/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 extra repo, moreover I gave the command:

# 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
	liblastfm_fingerprint.so.0 (libc6,x86-64) => /usr/lib/liblastfm_fingerprint.so.0
	liblastfm_fingerprint.so (libc6,x86-64) => /usr/lib/liblastfm_fingerprint.so
	liblastfm.so.0 (libc6,x86-64) => /usr/lib/liblastfm.so.0
	liblastfm.so (libc6,x86-64) => /usr/lib/liblastfm.so
	libgslcblas.so.0 (libc6,x86-64) => /usr/lib/libgslcblas.so.0
	libgslcblas.so (libc6,x86-64) => /usr/lib/libgslcblas.so
	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.

Any idea would be much appreciated... Thanks!


EDIT: I have been helped by the elegant community. The problem was that the compiler was looking for the static version of the libraries (libsomething.a) instead Arch comes by default with the non-static ones (libsomething.so). I had to modify slightly the make file to tell it to use the non-static and all went fine.

Last edited by DarioP (2012-03-21 14:30:06)

Offline

Board footer

Powered by FluxBB