Can't link atlas or cblas libraries
Rick Stevens
ricks at nerd.com
Thu Sep 2 20:02:14 UTC 2010
On 09/02/2010 06:25 AM, Jussi Lehtola wrote:
> On Thu, 02 Sep 2010 09:55:58 +0300
> Henrik Mannerström<henrik.mannerstrom at gmail.com> wrote:
>
>> Hello,
>>
>> On my Fedora 11, when I try to compile a program that uses BLAS the
>> linking fails:
>> > /usr/bin/ld: cannot find -lcblas
>>
>> I have packages blas, blas-devel, atlas and atlas-devel installed.
>> There exists a symlink for
>> libcblas.so: /usr/lib64/atlas/libcblas.so -> ./libcblas.so.3.0
>> but 'ldconfig-p' does not find it, only the so.3-file:
>> libcblas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libcblas.so.3 .
>>
>> What should I do to be able to compile programs with BLAS and LAPACK?
>> Do I need to complete the installation of the devel-packages by hand?
>
> You need to pass the linker option -L/usr/lib64/atlas so that the
> linker finds the libraries.
The OP should also check /etc/ld.so.conf.d and verify that there is
an atlas-x86_64.conf file in there. If not:
# echo "/usr/lib64/atlas" >/etc/ld.so.conf.d/atlas-x86_64.conf
Then, as root, run "ldconfig -v". This will remove the need to specify
the "-L" option to the linker.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting ricks at nerd.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- First Law of Work: -
- If you can't get it done in the first 24 hours, work nights. -
----------------------------------------------------------------------
More information about the users
mailing list