分页: 1 / 1

安装apache mod_wsgi 报错

发表于 : 2011-05-18 13:59
tomcatleee
照这里安装的:http://code.google.com/p/modwsgi/wiki/Q ... ationGuide
mod_wsgi-3.3$ make
/usr/bin/apxs2 -c mod_wsgi.c -Wl,-F -framework
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:135:20: fatal error: Python.h: 没有那个文件或目录
compilation terminated.
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] 错误 1

Re: 安装apache mod_wsgi 报错

发表于 : 2011-08-31 14:37
ustcwxz
错误信息已经提示了
mod_wsgi.c:135:20: fatal error: Python.h: 没有那个文件或目录
On Linux systems, if Python has been installed from a package repository, you must have installed the corresponding Python "dev" package as well.

代码: 全选

sudo apt-get install python-dev