下载并解压文件“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