gpt4 book ai didi

boost - 在 CentOS : can't find Boost 1. 40 或更高版本上安装 Thrift

转载 作者:太空宇宙 更新时间:2023-11-03 17:16:50 24 4
gpt4 key购买 nike

我在尝试安装 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

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

最佳答案

这是一个老问题,但我最近在使用 Cent 5.10 机器和构建 Thrift 时遇到了同样的问题

修复 boost141 的包含文件,构建将正常运行。

ln -s /usr/include/boost141/boost /usr/include/boost

关于boost - 在 CentOS : can't find Boost 1. 40 或更高版本上安装 Thrift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13616762/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com