/usr/bin/ld: cannot find -lcblas/-latlas

850 views
Skip to first unread message

Eduardo Franco

unread,
Aug 31, 2015, 2:06:24 PM8/31/15
to Caffe Users
Hello,
I know this was a previously a post, but the suggestions there for some reason haven't been working for me. I am running on CentOS Linux release 7.0.1406 (Core) and have installed Atlas as recommended in the installation instructions using 'sudo yum install atlas-devel'. When I run 'make all', I get the following error:

LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so] Error 1

This is what my Makefile.Config looks like for BLAS:

# BLAS choice:
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
BLAS := atlas
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
BLAS_INCLUDE := /usr/include
BLAS_LIB := /usr/lib64/atlas

cblas.h file is definitely sitting in /usr/include, however I don't see libcblas.so anywhere on my system... 

Any other suggestions for how I may solve this? Thanks!




Boaz

unread,
Sep 1, 2015, 6:37:16 AM9/1/15
to Caffe Users
To see where it got installed and by which package you can try: yum provides "*/libcblas.so"

汤剑斌

unread,
Aug 3, 2016, 3:03:35 AM8/3/16
to Caffe Users
Hi

try
sudo ln -sv libsatlas.so.3.10 libatlas.so
sudo ln -sv libsatlas.so.3.10 libatlas.so

at least it works for me.

在 2015年8月i,31日星期一 UTC-5下午1:06:24,Eduardo Franco写道:
Reply all
Reply to author
Forward
0 new messages