尝试安装Thrift时,我无法动摇此错误:
./configure
...
checking for boostlib >= 1.40.0... configure: WARNING: We could not detect the boost libraries (version 1.40 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.
我正在使用CentOS。根据Thrift docs on CentOS,我已经完成了
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
我尝试使用--with-boost
无济于事。
我也做过:
[]# yum install boost141
Setting up Install Process
Package boost141-1.41.0-2.el5.x86_64 already installed and latest version
Nothing to do
[]# yum install boost141-devel
Setting up Install Process
Package boost141-devel-1.41.0-2.el5.x86_64 already installed and latest version
Package boost141-devel-1.41.0-2.el5.i386 already installed and latest version
Nothing to do
所以现在我有:
[root@domU-12-31-39-18-3D-20 include]# find / -name boost
/usr/local/bin/boost
/usr/include/boost141/boost
/usr/include/boost
通过各种谷歌搜索,我发现有这个错误的人说'噢,这是gcc-c ++,我没有安装',但据我所知,我安装了gcc-c ++:
[root@domU-12-31-39-18-3D-20 boost]# yum install gcc-c++
rightscale-epel | 951 B 00:00
Setting up Install Process
Package gcc-c++-4.1.2-46.el5_4.2.x86_64 already installed and latest version
Nothing to do
有什么建议吗?提前谢谢。
答案 0 :(得分:1)
这是一个老问题,但我最近使用Cent 5.10机器和构建Thrift同样的事情
修复boost141的包含文件,构建将起作用。
ln -s /usr/include/boost141/boost /usr/include/boost