以下是我在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 ++。我不知道我哪里出错了,或者我有什么遗失的东西。我是新手。
答案 0 :(得分:2)
对于那些遇到同样问题的人,我终于明白了这个问题。我安装了boost但没有安装boost-devel。
sudo yum install boost-devel