Boost 在CentOS上安装Thrift:can';我找不到增压1.40或更高

Boost 在CentOS上安装Thrift:can';我找不到增压1.40或更高,boost,centos,thrift,Boost,Centos,Thrift,在尝试安装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 $BO

在尝试安装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.
我尝试过使用
——与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

有什么建议吗?提前谢谢。

这是一个老问题,但我最近遇到了同样的问题:使用5.10美分的机器和建立节俭

修复boost141的include文件,构建就可以了

ln-s/usr/include/boost141/boost/usr/include/boost
[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