【问题标题】:Cant make mod_wsgi-3.3 in trying to use it with xampp and django在尝试将它与 xampp 和 django 一起使用时无法制作 mod_wsgi-3.3
【发布时间】:2011-05-31 09:02:45
【问题描述】:
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 接缝可以在所有其他方面发挥作用

【问题讨论】:

    标签: django apache xampp mod-wsgi wsgi


    【解决方案1】:

    您需要为您正在使用的 Python 安装安装“开发”包。

    错误信息描述在:

    http://code.google.com/p/modwsgi/wiki/InstallationIssues#Missing_Python_Header_Files

    【讨论】:

      猜你喜欢
      • 2011-04-02
      • 1970-01-01
      • 1970-01-01
      • 2012-07-10
      • 2011-11-20
      • 2014-07-28
      • 1970-01-01
      • 2013-12-23
      • 1970-01-01
      相关资源
      最近更新 更多