有没有人在默认安装 Python (2.6.2) 的 Ubuntu 9.04 上成功使用 mod_wsgi 2.5?
我遇到了编译错误:
mod_wsgi.c:119:2: error: #error Sorry, mod_wsgi requires at least Python 2.3.0.
mod_wsgi.c:123:2: error: #error Sorry, mod_wsgi requires that Python supporting thread.
which Python 给出/usr/bin/python 并且 /usr/bin/python -V 返回 Python 2.6.2 所以我不确定有什么问题第一个,老实说,我不知道如何检查在 Ubuntu 上编译默认 Python 时使用的选项。
还有很多其他错误,但那两个看起来最相关。
还有什么可能是错的??
请您参考如下方法:
从你的错误中我看到你必须编译 python 扩展。如果您还没有,我建议您安装 python-dev 包,因为它通常是编译 python 扩展所必需的,并且它不是默认安装的一部分。
安装包就像运行一样简单:
sudo apt-get install python-dev
从命令行。
