2012-06-29 22 views
5

嘗試在Fedora 64系統上使用bzr從Launchpad中的gearmand-0.33.tar.gz構建gearman。./configure沒有看到/發現增壓頭文件

通過自行執行./configure以及使用「-with-boost =/usr/include」參數生成警告錯誤,因爲配置過程似乎無法找到/定位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 
+0

你可以檢查'configure.log'的詳細信息。 – Jichao

回答

2

正確的選擇可能是--with-boost,你應該檢查與./configure -h

此外,檢查目錄/usr/include/boost是否存在,因爲這似乎是它正在尋找。

此外,請確保您不應該使用--with-boost-include=/usr/include(也可能是--with-boost-libs(或-lib))。

+0

Hi Kenneth。謝謝回覆。原來在構建過程的另一部分中存在損壞的數據,這影響了這部分。一旦我完成了正確的構建,我會重新發布,關閉這一個。 –

+0

你有沒有設法正確地建立它? – MatsLindh

9

就已經處理了這個問題,安裝GCC-C++,並且已經解決了它

+1

謝謝,這對我有用。 –

+1

謝謝,也爲我工作,但我從來沒有猜到 – carpii

0

在我的情況下,使用--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