2

我的系统是 Red Hat Enterprise Linux Server release 5.7 (Tikanga)。

我正在尝试运行配置脚本,但出现以下错误:

checking for the toolset name used by Boost for g++... gcc41 -gcc
configure: Detected BOOST_ROOT; continuing with --with-boost=/raid/users/andrey/3rdParty/boost_1_47/
checking for Boost headers version >= 1.39.0... /users/andrey/3rdParty/boost_1_47/
checking for Boost's header version... 1_47
checking boost/program_options.hpp usability... no
checking boost/program_options.hpp presence... no
checking for boost/program_options.hpp... no
configure: error: cannot find boost/program_options.hpp

configure 的文档说 boost 是一个可选包。所以我试图在没有提升的情况下构建它:

  configure -with-boost=no

这也不会运行并返回以下错误:

checking for assert... no
checking for the toolset name used by Boost for g++... gcc41 -gcc
configure: Detected BOOST_ROOT=/users/andrey/3rdParty/boost_1_47/, but overridden by --with-boost=no
checking for Boost headers version >= 1.39.0... no

我已经看到了这个问题,但它似乎对我没有帮助。任何想法?

4

4 回答 4

2

在 debian/ubuntu/mint 你可以使用:

apt-get   install  libboost-all-dev
于 2015-01-12T12:42:05.427 回答
1

从源代码构建 gearmand 时,我遇到了同样的问题。这个问题在我安装了 boost-devel 包后得到了解决,它将需要的头文件放入 /usr/include/boost。谢谢,希望这可能会有所帮助。

于 2013-12-09T04:28:58.460 回答
0

步骤“安装 Gearman 所需的 Cygwin 包依赖项”。除了这些软件包:

gcc
gcc-c++
gcc-g++
make
libuuid1-devel
libiconv

如果你这样做了,你可以:重新安装 cygwin 并安装它:

libuuid
boost
于 2013-10-15T13:27:18.567 回答
0

您可以使用以下命令来解决此问题。

yum install boost*

如果您使用的是 centos、fedora 或 redhat,那么上面的命令将起作用。

于 2013-10-17T07:02:02.230 回答