使用Python构建Caffe(无法找到-lboost_python3) [英] Build caffe with Python ( cannot find -lboost_python3 )
本文介绍了使用Python构建Caffe(无法找到-lboost_python3)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用python构建caffe,但它一直在说
I'm trying to build caffe with python but it keep saying this
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
/usr/bin/ld: cannot find -lboost_python3
collect2: error: ld returned 1 exit status
make: *** [python/caffe/_caffe.so] Error 1
这是我尝试找到boost_python
$ sudo locate boost_python
/usr/lib/x86_64-linux-gnu/libboost_python-py27.a
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.55.0
/usr/lib/x86_64-linux-gnu/libboost_python-py33.a
/usr/lib/x86_64-linux-gnu/libboost_python-py33.so
/usr/lib/x86_64-linux-gnu/libboost_python-py33.so.1.55.0
/usr/lib/x86_64-linux-gnu/libboost_python-py34.a
/usr/lib/x86_64-linux-gnu/libboost_python-py34.so
/usr/lib/x86_64-linux-gnu/libboost_python-py34.so.1.55.0
/usr/lib/x86_64-linux-gnu/libboost_python.a
/usr/lib/x86_64-linux-gnu/libboost_python.so
我也添加了此路径
## .bashrc
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu":$LD_LIBRARY_PATH
有人知道为什么要打apping吗?
Any idea why is that happing?
推荐答案
我发现了问题.原来,在将Makefile.config中的名称从boost_python3
更改为boost_python-py34
后,它尝试查找名称为libboost_python3.so
的东西,效果很好!
I've found the problem. it turned out that it tries to look for something with that name of libboost_python3.so
after changing the name in Makefile.config from boost_python3
to boost_python-py34
, it worked just fine!
这篇关于使用Python构建Caffe(无法找到-lboost_python3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文