2016-11-15 77 views
0

我試圖建立朱古力與Python,但它一直在說這個用python製作朱古力(找不到-lboost_python3)

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 

任何想法,這是爲什麼happing?

回答

4

我發現了這個問題。事實證明,它試圖在將Makefile.config中的名稱從boost_python3更改爲boost_python-py34後,找到名稱爲libboost_python3.so的東西,它工作得很好!

相關問題