Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building issue on ubuntu16.04 with python3 #4045

Closed
fayeshine opened this issue Apr 26, 2016 · 7 comments
Closed

building issue on ubuntu16.04 with python3 #4045

fayeshine opened this issue Apr 26, 2016 · 7 comments

Comments

@fayeshine
Copy link

AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lboost_python3
collect2: error: ld returned 1 exit status
Makefile:563: 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
@fayeshine fayeshine changed the title building issue on ubunt16.04 with python3 building issue on ubuntu16.04 with python3 Apr 26, 2016
@seanbell
Copy link

seanbell commented Apr 27, 2016

Do you have boost_python3 installed and on your path?

The error says:

/usr/bin/ld: cannot find -lboost_python3

@HabenGirmayYhdego
Copy link

I got error as ff pls help how t
CXX tools/upgrade_solver_proto_text.cpp
CXX examples/cpp_classification/classification.cpp
CXX examples/cifar10/convert_cifar_data.cpp
CXX examples/mnist/convert_mnist_data.cpp
CXX examples/siamese/convert_mnist_siamese_data.cpp
CXX .build_release/src/caffe/proto/caffe.pb.cc
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:566: 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

@seanbell
Copy link

seanbell commented May 4, 2016

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.

@seanbell seanbell closed this as completed May 4, 2016
@lukeyeager
Copy link
Contributor

FYI boost doesn't provide the symlink that you'd expect. Either link to the correct version directly like -lboost_python-py34 or create the symlink yourself:

ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py34.so /usr/lib/x86_64-linux-gnu/libboost_python3.so

@Petra-Kate
Copy link

For Ubuntu 16.04 LTS:
Mind the shift from Python 3.4 to Python 3.5, accordingly:

ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python3.so

@yingning
Copy link

yingning commented Sep 4, 2016

Can you tell me how you solve your problem mentioned above?I am looking forward to receive your reply. @habemen

@lizhimins
Copy link

missing dependencies

For_ Ubuntu 16.04 LTS:
apt search libboost
apt-get install libboost-all-dev

According to your version:
ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so.1.58.0 /usr/local/lib/libboost_python3.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants