2017-02-20 125 views
1

我想我几乎遵循了所有的指令: https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-GuideUbuntu上的Caffe编译错误16.04

我仍然得到错误:

/usr/bin/ld: cannot find -lopenblas 
collect2: error: ld returned 1 exit status 
Makefile:567: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed 
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 

有没有人碰到这个?

+1

[usr/bin/ld:找不到-l ]的可能重复(http://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary) – tripleee

回答

2

您是否安装OpenBLAS?尝试以下命令并重复compillation过程:

sudo apt-get install -y libopenblas-dev 

如果失败,您可以尝试使用cmake来压缩caffe。

从build文件夹,这样做:

cmake -DBLAS=open .. 
make all -j $(($(nproc) + 1)) 
make install 
make runtest 

你应该提供的配置文件,以更好地了解链接。