【发布时间】:2011-09-07 23:54:32
【问题描述】:
我正在尝试让mod_wsgi 3.3 工作。当我运行make 时,它告诉我我缺少 Python 开发人员包。如何获取和安装 Python 开发者包?
我得到的错误如下:
mod_wsgi.c:135:20: error: Python.h: No such file or directory
mod_wsgi.c:138:2: error: #error Sorry, Python developer package does not appear to be installed.
mod_wsgi.c:142:2: error: #error Sorry, mod_wsgi requires at least Python 2.3.0 for Python 2.X.
mod_wsgi.c:150:2: error: #error Sorry, mod_wsgi requires that Python supporting thread.
mod_wsgi.c:153:21: error: compile.h: No such file or directory
mod_wsgi.c:154:18: error: node.h: No such file or directory
mod_wsgi.c:155:20: error: osdefs.h: No such file or directory
系统(Amazon EC2 实例)
- Apache 2.2.16 (Unix)
- Amazon Linux(Red Hat 4.4.4-13) AMI 测试版 2011.02
- Python 2.6.6
【问题讨论】:
-
你是如何安装 Python 2.6.6 的?
-
是的,它默认安装到操作系统中。
-
对不起,我没有自己安装。当我创建 EC2 实例时,系统上已经有 Python 2.6.6。
标签: python linux amazon-ec2 mod-wsgi