Closed
Description
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
Activity
WeiCheng14159 commentedon Oct 28, 2016
solved my problem thx !
MarcosPieras commentedon 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 commentedon Jan 19, 2017
This solution did not work for me, unfortunately. Any reason why?
I changed the
boost_python3
in the Makefile.config toboost_python3-py35
and it worked perfectly.MarcosPieras commentedon 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!
wujun commentedon Aug 16, 2017
Great solution!@H-adorable
xnming commentedon Aug 23, 2017
I am building caffe under Ubuntu 16.04. The solution for me is to change
boost_python3
toboost_python-py35
.zwx19961130 commentedon Mar 5, 2018
Thank you. This has solved my question.
minhaj3 commentedon 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 commentedon Dec 14, 2018
For my Python 3.6 setup, something similar worked,
ln -s libboost_python36.so libboost_python3.so
JFishLover commentedon Mar 22, 2019
thanks @minhaj3
tailongnguyen commentedon Sep 7, 2019
For those who tried all methods mentioned above and still got the error, check if you have already installed libboost by running:
sudo apt-get install -y --no-install-recommends libboost-all-dev
.4 remaining items