2017-01-23 47 views
0

我正在嘗試安裝圖形工具,但會返回以下錯誤。我該如何讓圖形工具找到boost庫並安裝它?

./cofigure 
... 
... 
graph-tool will be installed at: /home/my_name/anaconda2/lib/python2.7/site-packages 
=========================== 
Using python version: 2.7.12 
=========================== 
checking for boostlib >= 1.54.0... configure: We could not detect the boost libraries (version 1.54 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation. 
checking whether the Boost::Python library is available... yes 
checking whether boost_python is the correct library... yes 
checking whether the Boost::IOStreams library is available... yes 
configure: error: Could not link against boost_python ! 

看來這個錯誤一樣 Installing Thrift on CentOS: can't find Boost 1.40 or higher 。所以我想我應該做一個適當的符號鏈接讓configure文件找到boost庫的路徑。但我不確定我應該在哪裏建立鏈接,因爲「查找」命令的結果與上述問題的提問者不同。

[[email protected] my_name]# su 
[[email protected] my_name]# find/-name boost 
/home/my_name/python/graph-tool-2.19/src/boost-workaround/boost 
/home/my_name/boost_1_63_0/doc/html/boost 
/home/my_name/boost_1_63_0/doc/test/gold/boost 
/home/my_name/boost_1_63_0/tools/boostbook/test/doxygen/boost 
/home/my_name/boost_1_63_0/boost 
/home/my_name/boost_1_63_0/boost/chrono/typeof/boost 
/home/my_name/boost_1_63_0/boost/hana/ext/boost 
/home/my_name/boost_1_63_0/libs/sort/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/sort/doc/html/boost 
/home/my_name/boost_1_63_0/libs/chrono/stopwatches/include/boost 
/home/my_name/boost_1_63_0/libs/hana/example/ext/boost 
/home/my_name/boost_1_63_0/libs/hana/test/ext/boost 
/home/my_name/boost_1_63_0/libs/vmd/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/convert/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/convert/doc/html/boost 
/home/my_name/boost_1_63_0/libs/functional/overloaded_function/doc/html/boost 
/home/my_name/boost_1_63_0/libs/math/include_private/boost 
/home/my_name/boost_1_63_0/libs/compute/doc/html/boost 
/home/my_name/boost_1_63_0/libs/pool/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/pool/doc/html/boost 
/home/my_name/boost_1_63_0/libs/log/doc/html/boost 
/home/my_name/boost_1_63_0/libs/tti/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/tti/doc/html/boost 
/home/my_name/boost_1_63_0/libs/icl/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/icl/doc/html/boost 
/home/my_name/boost_1_63_0/libs/numeric/odeint/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/numeric/odeint/doc/html/boost 
/home/my_name/boost_1_63_0/libs/core/doc/html/boost 
/home/my_name/boost_1_63_0/libs/test/doc/html/header/boost 
/home/my_name/boost_1_63_0/libs/test/doc/html/boost 
/usr/local/cuda-8.0/samples/6_Advanced/interval/boost 
/usr/include/boost 

有沒有人知道如何解決這個問題?非常感謝你提前。

回答

0

發佈這個問題後,我設法通過我自己解決這個問題。

看來發生錯誤是因爲Boost實際上沒有正確安裝。

這一次,我所做的:

$ cd /usr/local 
$ tar --bzip2 -xf boost_1_63_0.tar.bz2 
$ cd boost_1_63_0.tar.bz2 
$ sh ./bootstrap.sh 
$ sudo ./b2 install 

然後,我發現下面的目錄。

$ sudo find/-name boost 

/home/tokudakeita/python/graph-tool-2.19/src/boost-workaround/boost 
/usr/local/boost_1_63_0/doc/html/boost 
/usr/local/boost_1_63_0/doc/test/gold/boost 
/usr/local/boost_1_63_0/tools/boostbook/test/doxygen/boost 
/usr/local/boost_1_63_0/boost 
/usr/local/boost_1_63_0/boost/chrono/typeof/boost 
/usr/local/boost_1_63_0/boost/hana/ext/boost 
/usr/local/boost_1_63_0/libs/sort/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/sort/doc/html/boost 
/usr/local/boost_1_63_0/libs/chrono/stopwatches/include/boost 
/usr/local/boost_1_63_0/libs/hana/example/ext/boost 
/usr/local/boost_1_63_0/libs/hana/test/ext/boost 
/usr/local/boost_1_63_0/libs/vmd/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/convert/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/convert/doc/html/boost 
/usr/local/boost_1_63_0/libs/functional/overloaded_function/doc/html/boost 
/usr/local/boost_1_63_0/libs/math/include_private/boost 
/usr/local/boost_1_63_0/libs/compute/doc/html/boost 
/usr/local/boost_1_63_0/libs/pool/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/pool/doc/html/boost 
/usr/local/boost_1_63_0/libs/log/doc/html/boost 
/usr/local/boost_1_63_0/libs/tti/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/tti/doc/html/boost 
/usr/local/boost_1_63_0/libs/icl/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/icl/doc/html/boost 
/usr/local/boost_1_63_0/libs/numeric/odeint/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/numeric/odeint/doc/html/boost 
/usr/local/boost_1_63_0/libs/core/doc/html/boost 
/usr/local/boost_1_63_0/libs/test/doc/html/header/boost 
/usr/local/boost_1_63_0/libs/test/doc/html/boost 
/usr/local/cuda-8.0/samples/6_Advanced/interval/boost 
/usr/local/include/boost 
/usr/local/include/boost/chrono/typeof/boost 
/usr/local/include/boost/hana/ext/boost 

我發現那是什麼只是

$ ./b2 

不創建以下目錄:

/usr/local/include/boost 
/usr/local/include/boost/chrono/typeof/boost 
/usr/local/include/boost/hana/ext/boost 

但下面的命令作出了上述目錄:

$ sudo ./b2 install 

然後,圖形工具的配置文件成功找到了提升。

相關問題