【发布时间】: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