【问题标题】:Cannot compile gearman - configure script fails无法编译 gearman - 配置脚本失败
【发布时间】:2013-04-26 10:34:34
【问题描述】:

我的系统是 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

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

【问题讨论】:

  • 我在 Centos 5.4 上编译 gearman 时也遇到了问题。您确定 /raid/users/andrey/VRA/3rdParty/boost_1_47/ 包含 boost 标头(包含),而不是 boost 库?
  • 正确的标志是--with-boost=no(双破折号)。你说这给了你另一个错误,但你没有显示任何错误,只是警告配置正在使用--with-boost=no,这正是你想要的......当你禁用提升时它是如何失败的?跨度>
  • 您要编译哪个版本的 Gearman?
  • @Diemuzi,坦率地说,我不记得了。我对 Gearman 不太满意,所以我决定不管它。

标签: compilation redhat configure gearman


【解决方案1】:

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

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

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

libuuid
boost

【讨论】:

  • 感谢您的回答。我将无法检查它,因为我不再使用 Gearman。
【解决方案2】:

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

yum install boost*

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

【讨论】:

  • 感谢您的回答。我将无法检查它,因为我不再使用 Gearman
【解决方案3】:

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

【讨论】:

  • 感谢您的回答。我将无法检查它,因为我不再使用 Gearman
【解决方案4】:

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

apt-get   install  libboost-all-dev

【讨论】:

  • 感谢您的回答。我将无法检查它,因为我不再使用 Gearman
  • libboost-all-dev 已经是最新版本,同样的错误
  • 对于所有类型的错误,请参阅:hasin.me/2013/10/30/…
  • 问题以“我的系统是 Red Hat Enterprise Linux Server 5.7 (Tikanga)”开头。所以说一个非常不同的 Linux 发行版有一个包的答案并不是那么有帮助。
猜你喜欢
  • 2012-10-14
  • 2018-10-23
  • 2011-09-17
  • 1970-01-01
  • 2014-01-13
  • 1970-01-01
  • 1970-01-01
  • 2013-08-02
  • 2013-01-13
相关资源
最近更新 更多