本文介绍了“ / usr / bin / ld:找不到-lopenblas” Caffe编译中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编译Caffe时,尽管安装了OpenBLAS,我仍然遇到此错误:

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

是否存在

推荐答案

即使克隆OpenBlas并包含基本包,也要在14.04和16中链接相应的库。 / p>

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

易于安装liblapack-dev liblapack3 libopenblas-base libopenblas-dev

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

这篇关于“ / usr / bin / ld:找不到-lopenblas” Caffe编译中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 11:52