@
likai 后来把Python.h找到了,然后在make 的时候又出现一堆问题,不是warning就是error,表示完全看不懂了
In file included from /usr/include/python2.7/Python.h:8:0,
from /home/sr1/下载/mod_python-2.7.8/src/include/mod_python.h:77,
from mod_python.c:54:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:215:0: note: this is the location of the previous definition
In file included from mod_python.c:54:0:
/home/sr1/下载/mod_python-2.7.8/src/include/mod_python.h:93:1: error: unknown type name ‘pool’
/home/sr1/下载/mod_python-2.7.8/src/include/mod_python.h:96:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘python_module’
In file included from /home/sr1/下载/mod_python-2.7.8/src/include/mod_python.h:99:0,
from mod_python.c:54:
/home/sr1/下载/mod_python-2.7.8/src/include/util.h:57:1: error: unknown type name ‘array_header’
In file included from /home/sr1/下载/mod_python-2.7.8/src/include/mod_python.h:100:0,
from mod_python.c:54:
/home/sr1/下载/mod_python-2.7.8/src/include/tableobject.h:69:2: error: unknown type name ‘table’
/home/sr1/下载/mod_python-2.7.8/src/include/tableobject.h:70:2: error: unknown type name ‘pool’
/home/sr1/下载/mod_python-2.7.8/src/include/tableobject.h:77:52: error: unknown type name ‘table’
………………………………
………………………………
………………………………
………省略一堆…………
………………………………
………………………………
………………………………