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

Solve the problem: "cannot find -lboost_python3" when using Python3 Ubuntu16.04 #4843

Closed
H-xie opened this Issue Oct 14, 2016 · 9 comments

Comments

Projects
None yet
10 participants
@H-xie
Copy link

H-xie commented Oct 14, 2016

When

make all

cannot find -lboost_python3

occurred.

Then I went to

/usr/lib/x86_64-linux-gnu

search and found that the library file is in different name as

libboost_python-py35.so

so I made a link by following command

sudo ln -s libboost_python-py35.so libboost_python3.so 

which solved my problem.

Suggest that this step could add to Installation Guide

@supernovaremnant

This comment has been minimized.

Copy link

supernovaremnant commented Oct 28, 2016

solved my problem thx !

@MarcosPieras

This comment has been minimized.

Copy link

MarcosPieras commented Nov 16, 2016

Hi, I am in similar situation, which version of python and libboost did you use ?
Could you upload your Makefile.config file, please ?
thanks

@varunagrawal

This comment has been minimized.

Copy link

varunagrawal commented Jan 19, 2017

This solution did not work for me, unfortunately. Any reason why?
I changed the boost_python3 in the Makefile.config to boost_python3-py35 and it worked perfectly.

@MarcosPieras

This comment has been minimized.

Copy link

MarcosPieras commented Jan 20, 2017

I solved using cmake. I modified the cmakelist.txt, I changed the interpreter line : set(python_version "3.5.2" CACHE STRING "Specify which Python version to use"). And It worked!

@shelhamer shelhamer closed this Apr 12, 2017

@wujun

This comment has been minimized.

Copy link

wujun commented Aug 16, 2017

Great solution!@H-adorable

@Xnming

This comment has been minimized.

Copy link

Xnming commented Aug 23, 2017

I am building caffe under Ubuntu 16.04. The solution for me is to change boost_python3 to boost_python-py35.

@zwx19961130

This comment has been minimized.

Copy link

zwx19961130 commented Mar 5, 2018

Thank you. This has solved my question.

@minhaj3

This comment has been minimized.

Copy link

minhaj3 commented Mar 16, 2018

I am building caffe in Ubuntu 16.04. For me changing boost_python3 to boost_python-py35 worked. "boost_python3-py35" did not work for me.

@edrozenberg

This comment has been minimized.

Copy link

edrozenberg commented Dec 14, 2018

For my Python 3.6 setup, something similar worked, ln -s libboost_python36.so libboost_python3.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment