照这里安装的: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
安装apache mod_wsgi 报错
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 104
- 注册时间: 2009-08-11 21:48
-
- 帖子: 1
- 注册时间: 2008-12-03 9:11
Re: 安装apache mod_wsgi 报错
错误信息已经提示了
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