尝试在Fedora 21上安装PythonMagic 0.9.11时出错

问题描述:

以下是我在Pythin0.9.11文件夹上运行make时命令行上的输出。我在Fedora 21.尝试在Fedora 21上安装PythonMagic 0.9.11时出错

[[email protected] PythonMagick-0.9.11]$ make   
Making all in pythonmagick_src     
make[1]: Entering directory '/home/user/PythonMagick-0.9.11/pythonmagick_src'   
    CXX  libpymagick_la-_DrawableFillRule.lo      
_DrawableFillRule.cpp:3:28: fatal error: boost/python.hpp: No such file or directory      
    #include <boost/python.hpp>       
         ^   
compilation terminated.       
Makefile:645: recipe for target 'libpymagick_la-_DrawableFillRule.lo' failed   
make[1]: *** [libpymagick_la-_DrawableFillRule.lo] Error 1   
make[1]: Leaving directory '/home/user/PythonMagick-0.9.11    /pythonmagick_src'     
Makefile:641: recipe for target 'all-recursive' failed    
make: *** [all-recursive] Error 1   ``   

以下是从的config.log

gcc version 4.9.2 20141101 (Red Hat 4.9.2-1) (GCC) 
configure:3165: $? = 0 
configure:3154: g++ -V >&5 
g++: error: unrecognized command line option '-V' 
g++: fatal error: no input files 
compilation terminated. 
configure:3165: $? = 4 
configure:3154: g++ -qversion >&5 
g++: error: unrecognized command line option '-qversion' 
g++: fatal error: no input files 
compilation terminated. 
configure:3165: $? = 4 
configure:3185: checking whether the C++ compiler works 
configure:3207: g++ conftest.cpp -lposix >&5 
/bin/ld: cannot find -lposix 
collect2: error: ld returned 1 exit status 
configure:3211: $? = 1 
configure:3249: result: no 
configure: failed program was: 
| /* confdefs.h */ 
| #define PACKAGE_NAME "PythonMagick" 
| #define PACKAGE_TARNAME "PythonMagick" 
| #define PACKAGE_VERSION "0.9.11" 
| #define PACKAGE_STRING "PythonMagick 0.9.11" 
| #define PACKAGE_BUGREPORT "" 
| #define PACKAGE_URL "" 
| #define PACKAGE "PythonMagick" 
| #define VERSION "0.9.11" 
| /* end confdefs.h. */  

我装gcc-C++的迹线。我不知道我错在哪里或有什么我失踪。我对此很陌生。

+0

链接时使用'-lboost_python'? – 2015-02-10 09:10:56

+0

试试'sudo apt-get install libboost-all-dev'? – 2015-02-10 09:20:35

+0

好的谢谢......但我应该把这个论点放在哪里? – 2015-02-10 09:22:24

对于所有那些有同样问题的人,我最终理解了这个问题。我已经安装了boost,但没有安装boost-devel。

sudo yum install boost-devel