安装apache mod_wsgi 报错

重复贴和参考价值不大的帖子,版主维护
回复
tomcatleee
帖子: 104
注册时间: 2009-08-11 21:48
送出感谢: 0
接收感谢: 0

安装apache mod_wsgi 报错

#1

帖子 tomcatleee » 2011-05-18 13:59

照这里安装的: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
ustcwxz
帖子: 1
注册时间: 2008-12-03 9:11
送出感谢: 0
接收感谢: 0

Re: 安装apache mod_wsgi 报错

#2

帖子 ustcwxz » 2011-08-31 14:37

错误信息已经提示了
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
回复

回到 “归档贴”