下載並解壓文件「boost_1_56_0.tar.gz」後,我在CentOS Linux中安裝了Boost C++庫版本「boost_1_56_0」。Boost C++庫版本號
我已經運行下面的命令來安裝:
sudo ./bootstrap.sh --prefix=/usr/local
sudo ./b2 install.
我還添加了兩個路徑到PATH變量:
export PATH=$PATH:/usr/local/include/:/usr/local/lib/
已成功安裝。然而,當我檢查的版本,它表現出不同的版本:
$ cat /usr/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
#define BOOST_LIB_VERSION "1_33_1"
我試圖安裝boost_1_55_0以及其他文件夾中,但遺憾的是它仍然顯示版本1_33_1。
任何人都可以告訴我如何解決這個問題?
由於這個問題,我無法配置Graph_tool;它顯示以下錯誤:
checking for boostlib >= 1.53.0... configure: error: We could not detect the boost libraries (version 1.53 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 . See http://randspringer.de/boost for more documentation>
你的引導路徑是'/ usr/local',但是你在'/ usr/include'裏grep。當然你不應該檢查'/ usr/local/include'? (即你引導到錯誤的目錄?) – tillaert 2014-11-03 14:41:20