的./configure没有看到/发现升压头文件(./configure not seeing/fi

2019-09-18 17:16发布

试图建立一个Fedora 64系统上使用的BZR从启动板gearmand-0.33.tar.gz,Gearman的。

通过tiself做的./configure,以及使用“-with升压= / usr / include目录”参数生成警告的错误作为配置过程似乎无法找到/定位升压头文件。

通过“百胜安装提升*”我们已经删除/重新安装增压的头文件,以及

任何指针将受到审判!

谢谢

./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

Answer 1:

刚刚处理了这个问题,安装GCC-C ++,并且已经解决了它



Answer 2:

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

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

此外,要确保你不应该使用--with-boost-include=/usr/include (也许还--with-boost-libs (或-lib ))。



Answer 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



文章来源: ./configure not seeing/finding boost header files