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

Compilation 无法编译gearman-配置脚本失败,compilation,redhat,configure,gearman,Compilation,Redhat,Configure,Gearman,我的系统是Red Hat Enterprise Linux Server 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

我的系统是Red Hat Enterprise Linux Server 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
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
configure的文档说明boost是一个可选包。所以我试着在没有推进的情况下建造它:

  configure -with-boost=no
此操作也不会运行,并返回以下错误:

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
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
我已经看过了,但似乎对我没有帮助。 有什么想法吗?

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

gcc
gcc-c++
gcc-g++
make
libuuid1-devel
libiconv
如果您这样做了,您可以: 重新安装cygwin并安装此:

libuuid
boost

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

yum install boost*

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

在从源代码构建gearmand时,我遇到了相同的问题。在我安装了包boost-devel之后,这个问题得到了修复,该包将把所需的头文件放入/usr/include/boost中。感谢并希望这能有所帮助。

在debian/ubuntu/mint中,您可以使用:

apt-get   install  libboost-all-dev

我在Centos 5.4上编译gearman时也遇到了问题。您确定/raid/users/andrey/VRA/3rdParty/boost_1_47/包含boost头文件(包括),而不是boost库文件吗?正确的标志是
——boost=no
(双破折号)。您说这会给您带来另一个错误,但您没有显示任何错误,只是警告配置正在使用
--with boost=no
,这正是您想要的。。。当你禁用boost时,它怎么会失败?你想编译哪个版本的Gearman?@Diemuzi,坦白说,我已经不记得了。我对Gearman不太满意,所以我决定不去管它。谢谢你的回答。我将无法检查它,因为我不再使用Gearman。谢谢你的回答。我将无法检查它,因为我不再使用Gearman了。谢谢你的回答。我将无法检查它,因为我不再使用Gearman了。谢谢你的回答。我将无法检查它,因为我不再使用Gearman LibBoost所有开发都已经是最新版本,所有类型的错误都是相同的错误请参见:问题以“我的系统是Red Hat Enterprise Linux Server 5.7版(Tikanga)”开始因此,一个声明一个非常不同的Linux发行版有一个包的答案并没有多大帮助。