简体   繁体   中英

Caffe compilation error on Ubuntu 16.04

I think I pretty much followed all the instructions in: https://github.com/BVLC/caffe/wiki/Ubuntu-16.04-or-15.10-Installation-Guide .

I still get the error:

/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

Has anyone come across this?

Did you install OpenBLAS? Try the following command and repeat the compillation process:

sudo apt-get install -y libopenblas-dev

If it fails, you could try compilling caffe with cmake.

From the build folder, do:

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

You should provide the config file to better understand the links.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM