編譯時遇到boost函式庫的問題 - Linux

Table of Contents

系統:opensuse13.2

我想要使用graph-tool,所以照著https://graph-tool.skewed.de/download
的指示更新了gcc到49,用source-install安裝了cgal和boost、boost-devel和python3
套件。

不過./configure時會到boost函式的區段停住,

編譯指令:
./configure PYTHON=/usr/bin/python3

錯誤訊息:
checking for boostlib >= 1.53.0... yes
checking whether the Boost::Python library is available... yes
checking for exit in -lboost_python... no
checking for exit in -lboost_python... (cached) no
configure: error: No usable boost::python found

我確定/usr/lib64裡有libboost_python.so的函式庫

有試著指定boost函式庫的位址再編譯:
./configure PYTHON=/usr/bin/python3 BOOST_INCLUDE=/usr/include/boost
BOOST_LIB=/usr/lib64

不過還是一樣的錯誤訊息。請問該怎麼才能繼續編譯下去?

--

All Comments

Zanna avatarZanna2015-10-27
會不會你的libboost_python.so是link到python2?
Andy avatarAndy2015-10-29
如果有python3的.so可能會叫libboost_python3.so,但是
Xanthe avatarXanthe2015-11-01
因為你把python指到python3,但這個script找到的是
Sandy avatarSandy2015-11-03
python2的版本,所以才link不到吧?不過有什麼原因一定
要用python3嗎?XD
Jake avatarJake2015-11-04
只是說它好像找不到 python3 的 library 啊......