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

标签 python g++ fedora pythonmagick

以下是我在 Pythin0.9.11 文件夹上运行 make 时命令行上的输出。我使用的是 Fedora 21。

 [user@localhost 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++。我不确定我哪里出错了或者我遗漏了什么。我对此很陌生。

最佳答案

对于所有遇到同样问题的人来说,我终于明白了这个问题。我已经安装了 boost 但没有安装 boost-devel。

sudo yum install boost-devel

关于python - 尝试在 Fedora 21 上安装 PythonMagic 0.9.11 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28427711/

相关文章:

Python LDAP 模块 --- 我必须始终运行 "whoami_s()"才能成功进行身份验证吗?

python - Python 在哪里寻找库二进制文件?

c++ - 如何让我的 C++ 程序在 Unix 上编译?

c++ - 使用更少的参数调用 C++ 宏

linux - bash:家园:找不到命令

Python 正则表达式不返回

c++ - 对动态大小的对象进行排序

linux - CentOS yum 并行下载

linux - 安装了一个 RPM 文件。在哪里可以找到已安装的程序?

python - COMBOBOX 的垂直大小不适合 wxpython