./configure not seeing/finds boost header files

tom*_*ith 5 compiler-construction boost fedora gearman

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

通过tiself执行./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
Run Code Online (Sandbox Code Playgroud)

小智 11

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


Ken*_*ste 2

正确的选项可能是--with-boost,您应该使用 进行检查./configure -h

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

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