2015-06-26 64 views
0

我在Mac OSX Yosemite 10.10.3上,brew安裝提升不能正確編譯提升。例如,運行爲什麼brew不能正確編譯boost?

g++ -I/usr/local/Cellar/include -x c++ -E /dev/null -include boost/version.hpp  && echo SUCCESS: 

給我

# 1 "/dev/null" 
# 1 "<built-in>" 1 
# 1 "<built-in>" 3 
# 326 "<built-in>" 3 
# 1 "<command line>" 1 
In file included from <built-in>:326: 
<command line>:1:10: fatal error: 'boost/version.hpp' file not found 
#include "boost/version.hpp" 
     ^
# 1 "<built-in>" 2 
# 1 "/dev/null" 2 

我注意到,通過釀造安裝所獲得的目錄結構是由一個在這裏列出明顯不同:http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html也許這不會造成任何影響。

回答

0

該命令應改爲

g++ -I/usr/local/include -x c++ -E /dev/null -include boost/version.hpp && echo SUCCESS