2017-02-20 175 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 

你應該提供的配置文件,以更好地瞭解鏈接。