[英]Error while trying to install PythonMagic 0.9.11 on Fedora 21
The following is the output on the command line when I run make
on the Pythin0.9.11 folder. 以下是我在Pythin0.9.11文件夹中运行
make
时在命令行上的输出。 I'm on fedora 21. 我正在使用软呢帽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 ``
The following is the trace from config.log 以下是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. */
I installed gcc-c++. 我安装了gcc-c ++。 Im not sure where am I going wrong or is there something I'm missing.
我不确定我要去哪里错了或者缺少什么。 I'm new to this.
我是新来的。
For all those who had the same set of problem, well I understood the problem finally. 对于所有遇到相同问题的人,我终于明白了这个问题。 I had installed boost but boost-devel was not installed.
我已经安装了boost,但是没有安装boost-devel。
sudo yum install boost-devel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.