Caffe: Caffe Compilation error

Created on 20 Feb 2017  路  5Comments  路  Source: BVLC/caffe

I think I pretty much followed all the instructions on:
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

Any leads will be appreciated

-P

Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help.
_Do not post such requests to Issues._ Doing so interferes with the development of Caffe.

Please read the guidelines for contributing before submitting this issue.

Issue summary

Steps to reproduce

If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.

Your system configuration

Operating system:
Compiler:
CUDA version (if applicable):
CUDNN version (if applicable):
BLAS:
Python or MATLAB version (for pycaffe and matcaffe respectively):

Most helpful comment

/usr/bin/ld: cannot find -lopenblas

Did you apt-get install libopenblas-base libopenblas-dev ?

All 5 comments

/usr/bin/ld: cannot find -lopenblas

Did you apt-get install libopenblas-base libopenblas-dev ?

Thanks that helped!

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

_Please do not post usage, installation, or modeling questions, or other requests for help to Issues._
Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

make clean
make all
screenshot from 2017-09-04 17-41-59

AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -l -llmdb
collect2: error: ld returned 1 exit status
Makefile:575: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: * [.build_release/lib/libcaffe.so.1.0.0] Error 1
any one have solution thank you

This provides the answer for /usr/bin/ld: cannot find -l -llmdb
https://github.com/BVLC/caffe/wiki/Commonly-encountered-build-issues

runsudo apt-get install liblmdb-dev
then try make all

Was this page helpful?
0 / 5 - 0 ratings