[问题]pymol 1.1 编译出错,缺少python.h,但系统自带python

编译打包和其他
回复
dxq83
帖子: 53
注册时间: 2008-05-04 22:52

[问题]pymol 1.1 编译出错,缺少python.h,但系统自带python

#1

帖子 dxq83 » 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
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2008-06-29 12:40

装 python-dev
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
dxq83
帖子: 53
注册时间: 2008-05-04 22:52

#3

帖子 dxq83 » 2008-06-29 12:48

我好像装了啊 :( :(
dxq83
帖子: 53
注册时间: 2008-05-04 22:52

#4

帖子 dxq83 » 2008-06-29 13:21

谢谢,已解决 :D :D
squall1988
帖子: 21
注册时间: 2008-07-27 18:25

Re: [问题]pymol 1.1 编译出错,缺少python.h,但系统自带python

#5

帖子 squall1988 » 2008-11-18 19:04

dxq83, 你是怎么解决的阿
soliven
帖子: 11
注册时间: 2008-10-30 22:24

Re: [问题]pymol 1.1 编译出错,缺少python.h,但系统自带python

#6

帖子 soliven » 2009-03-14 10:42

楼主不厚道,要告诉后来人,搞得我折腾半天:
sudo apt-get install python-dev
回复