[问题]pymol 1.1 编译出错,缺少python.h,但系统自带python
发表于 : 2008-06-29 12:39
错误信息layer0/os_python.h:28:20: 错误: Python.h:没有该文件或目录 可是我安装了python,却有错误。
~/pymol-1.1r1$ python setup.py build
running build
running build_py
running build_ext
building 'pymol._cmd' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -D_PYMOL_MODULE -D_PYMOL_INLINE -D_PYMOL_FREETYPE -D_HAVE_LIBPNG -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -I/usr/include/freetype2 -I/usr/include/python2.5 -c layer0/Block.c -o build/temp.linux-i686-2.5/layer0/Block.o -ffast-math -funroll-loops -O3
在包含自 layer5/main.h:35 的文件中,
从 layer0/Block.c:20:
layer0/os_python.h:28:20: 错误: Python.h:没有该文件或目录
In file included from layer0/Block.c:20:
layer5/main.h:45: 错误: expected ‘)’ before ‘*’ token
layer5/main.h:46: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
error: command 'gcc' failed with exit status 1
~/pymol-1.1r1$ python setup.py build
running build
running build_py
running build_ext
building 'pymol._cmd' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -D_PYMOL_MODULE -D_PYMOL_INLINE -D_PYMOL_FREETYPE -D_HAVE_LIBPNG -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -I/usr/include/freetype2 -I/usr/include/python2.5 -c layer0/Block.c -o build/temp.linux-i686-2.5/layer0/Block.o -ffast-math -funroll-loops -O3
在包含自 layer5/main.h:35 的文件中,
从 layer0/Block.c:20:
layer0/os_python.h:28:20: 错误: Python.h:没有该文件或目录
In file included from layer0/Block.c:20:
layer5/main.h:45: 错误: expected ‘)’ before ‘*’ token
layer5/main.h:46: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
error: command 'gcc' failed with exit status 1