"/usr/bin/ld: cannot find -lopenblas" error in Caffe compilation

sator.arepo.tenet.opera.rotas picture sator.arepo.tenet.opera.rotas · Sep 2, 2015 · Viewed 12.1k times · Source

When I was compiling Caffe, I had this error, despite OpenBLAS is installed:

AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lopenblas
collect2: ld devolvió el estado de salida 1
make: *** [.build_release/lib/libcaffe.so] Error 1

Is there a solution for it?

Answer

Fitch picture Fitch · May 26, 2016

Including the base packs even after cloning OpenBlas and making will link the appropriate libraries in 14.04 and 16.

apt install liblapack-dev liblapack3 libopenblas-base libopenblas-dev

apt install liblapack-dev liblapack3 libopenblas-base libopenblas-dev