无法编译gearman - 配置脚本失败

时间:2013-05-02 09:44:16

标签: compilation redhat configure gearman

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

我正在尝试运行configure脚本,我收到以下错误:

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

我已经看过this question,但它似乎对我没有帮助。 有什么想法吗?

4 个答案:

答案 0 :(得分:3)

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

apt-get   install  libboost-all-dev

答案 1 :(得分:1)

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

答案 2 :(得分:0)

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

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

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

libuuid
boost

答案 3 :(得分:0)

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

yum install boost*

如果你使用的是centos或fedora或redhat,那么上面的命令就可以了。

相关问题