raz@T43:~/Downloads/mod_wsgi-3.3$ sudo ./configure --with-apxs=/opt/lampp/bin/apxs --with-python=/usr/bin/python2.6
checking Apache version... 2.2.14
configure: creating ./config.status
config.status: creating Makefile
raz@T43:~/Downloads/mod_wsgi-3.3$ sudo make
/opt/lampp/bin/apxs -c -I/usr/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/lib -L/usr/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm
/opt/lampp/build/libtool --silent --mode=compile gcc -prefer-pic -O3 -Wl,--rpath -Wl,/opt/lampp/lib -Wl,--rpath -Wl,/opt/lampp/lib/mysql -I/opt/lampp/include -L/opt/lampp/lib -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/opt/lampp/include -I/opt/lampp/include -I/opt/lampp/include -I/opt/lampp/include -I/usr/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
mod_wsgi.c:135: fatal error: Python.h: No such file or directory
compilation terminated.
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
我找不到什么问题。有谁有想法? Python接缝可以用于所有其他方面
答案 0 :(得分:3)
您需要为正在使用的Python安装安装'dev'软件包。
错误消息描述于:
http://code.google.com/p/modwsgi/wiki/InstallationIssues#Missing_Python_Header_Files