尝试安装 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。根据CentOS 上的 Thrift文档,我已经完成了
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
有什么建议吗?提前致谢。