错误信息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.1 编译出错,缺少python.h,但系统自带python
-
- 帖子: 53
- 注册时间: 2008-05-04 22:52
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 21
- 注册时间: 2008-07-27 18:25
Re: [问题]pymol 1.1 编译出错,缺少python.h,但系统自带python
dxq83, 你是怎么解决的阿
-
- 帖子: 11
- 注册时间: 2008-10-30 22:24
Re: [问题]pymol 1.1 编译出错,缺少python.h,但系统自带python
楼主不厚道,要告诉后来人,搞得我折腾半天:
sudo apt-get install python-dev
sudo apt-get install python-dev