为 64 位 Ubuntu 安装 python - 尝试安装 mod_wsgi
我之前因为postfix安装过python。然后我安装了 Django。接下来,我尝试安装 mod_wsgi 来部署 Django 应用程序。我收到此错误:
make: *** [mod_wsgi.la] error 1
显然这是由于旧版本的 python 造成的。我尝试安装较新版本的 python,但仍然遇到同样的问题。这是我安装的:
/usr/lib/python2.4/ /usr/lib/python2.5
我试图指定在运行 Make for mod_wsgi 时使用哪个 python 安装。
有什么想法吗?
谢谢。
I have previously had python installed because of postfix. I then installed Django. Next, I tried to install mod_wsgi for deploying a Django application. I get this error:
make: *** [mod_wsgi.la] error 1
Apparently it is due to an older version of python. I tried to install a newer version of python but I still get the same problem. This is what I have installed:
/usr/lib/python2.4/
/usr/lib/python2.5
I am trying to specify which python installation to use when running Make for mod_wsgi.
Any ideas?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你运行的是Ubuntu吗?就只是怎么样
?
You're running Ubuntu? How about just
?
尝试
./configure --help
。有一个 --with-python 选项或类似选项。Try
./configure --help
. There's a --with-python option or similar.您提供的信息不足,例如 make error 行之前的十几行。那些缺失的行将显示真正的错误。可能的原因可能是您没有安装 gcc,或者没有安装 Python 或 Apache 的“dev”包。 Apache/mod_wsgi 包支持回至 Python 2.3,因此您使用的版本本来就可以,尽管您可能必须告诉它要使用哪一个,因为您已经安装了多个版本。只需确保您阅读 mod_wsgi 网站上的官方安装说明,因为它解释了所有依赖项是什么以及如何构建它。
You have provided insufficient information, such as the dozen or so lines before that make error line. Those missing lines would show the real error. Possible causes may be that you don't have gcc installed or you don't have the 'dev' packages for either Python or Apache installed. The Apache/mod_wsgi package supports back to Python 2.3 so the versions you had would have been okay, albeit you may have to tell it which one to use now that you have multiple versions installed. Just make sure you read the official installation instructions on the mod_wsgi web site as it explains what all the dependencies are and how to build it.