【问题标题】:./configure not seeing/finding boost header files./configure 看不到/找不到 boost 头文件
【发布时间】:2012-06-29 01:07:32
【问题描述】:

尝试在 Fedora 64 系统上使用 bzr 从 Launchpad 的 gearmand-0.33.tar.gz 构建 gearman。

自己执行 ./configure 以及使用“-with-boost=/usr/include”参数会生成警告和错误,因为配置过程似乎无法找到/定位 boost 头文件。

我们也通过“yum install boost*”删除/重新安装了 boost 头文件

将尝试任何指针!

谢谢

./configure
.
.
.
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for Boost headers version >= 1.39.0... yes
checking for Boost's header version... 1_41
checking for the toolset name used by Boost for g++... gcc44 -gcc
checking boost/program_options.hpp usability... no
checking boost/program_options.hpp presence... yes
configure: WARNING: boost/program_options.hpp: present but cannot be compiled
configure: WARNING: boost/program_options.hpp:     check for missing prerequisite headers?
configure: WARNING: boost/program_options.hpp: see the Autoconf documentation
configure: WARNING: boost/program_options.hpp:     section "Present But Cannot Be Compiled"
configure: WARNING: boost/program_options.hpp: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/gearmand ##
configure: WARNING:     ## -------------------------------------------------- ##
checking for boost/program_options.hpp... no
configure: error: cannot find boost/program_options.hpp

【问题讨论】:

  • 您可以查看configure.log了解详细信息。

标签: boost compiler-construction fedora gearman


【解决方案1】:

刚刚解决了这个问题,安装了gcc-c++就解决了

【讨论】:

  • 谢谢,也为我工作,但我从来没有猜到
  • 随着我们向新技术发展,您可能希望安装g++。问题有点过时了。
【解决方案2】:

正确的选项可能是--with-boost,你应该检查./configure -h

另外,检查目录/usr/include/boost 是否存在,因为这似乎就是它要查找的内容。

此外,请确保您不应该使用--with-boost-include=/usr/include(也可能是--with-boost-libs(或-lib))。

【讨论】:

  • 嗨,肯尼斯。谢谢回复。原来在构建过程的另一部分中存在损坏的数据,这影响了这一部分。一旦我正确构建了所有内容,我将重新发布以将其关闭。
【解决方案3】:

就我而言,使用--with-boost=/path/to/root 有效,其中/path/to/root 包含include/boost

换句话说,--with-boost=/path/to/root/include--with-boost=/path/to/root/include/boost 都是错误的。

我也设置了--with-boost-libdir=/path/to/root/lib64

【讨论】:

    猜你喜欢
    • 2016-01-01
    • 2014-09-25
    • 2023-03-14
    • 2015-01-17
    • 2014-06-04
    • 1970-01-01
    • 1970-01-01
    • 2012-08-27
    相关资源
    最近更新 更多