安装 mod_WSGI 时遇到问题 - 找不到输入文件
我正在尝试设置 mod_wsgi 以与 Django 一起使用。我已经安装了 apache2、apache2-dev、python2.6、python2.6-dev,但是在运行配置时出现此错误:
checking for apxs2... /usr/bin/apxs2
checking Apache version... 2.2.14
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
感谢您的帮助!
I'm trying to set up mod_wsgi for use with Django. I have apache2, apache2-dev, python2.6, python2.6-dev all installed, but I'm getting this error when running configure:
checking for apxs2... /usr/bin/apxs2
checking Apache version... 2.2.14
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
Thanks for the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我遇到了完全相同的问题。安装 apache2-dev 包解决了这个问题。
我认为提问者不再需要这个答案,所以我为未来有类似问题的读者回答
I had the exact same problem. Installing the apache2-dev package solved it.
I don't think the asker needs this answer anymore, so I answered for future readers with similar problems
安装 apache2-threaded-dev:
Install apache2-threaded-dev:
我开始写道,您可能需要确保安装了 axps(您可以通过安装 apache2-dev 软件包来完成此操作)。但我注意到configure已经找到了axps。我遇到了类似的问题,但配置没有找到这种依赖关系。也许有一些类似的依赖关系或写入权限。
I started writing that you may need to ensure that you have axps installed (you can do this by installing the apache2-dev package). but I notice that configure already found axps. I had a similar problem but configure was bailing on not finding this dependency. Maybe some similar dependency or write permissions.
您正在 mod_WSGI 源代码目录中运行 mod_WSGI“配置”脚本,不是吗?即,与源 tar 球附带的 Makefile.in 文件位于同一目录中。
You are running the mod_WSGI 'configure' script in the mod_WSGI source code directory aren't you? Ie., in the same directory as the Makefile.in file that comes with the source tar ball.
mod_wsgi 的配置脚本使用 apxs 来查找 httpd 的路径:
将它们与“/”组合并添加“-v”,例如,
运行时应该不会出现错误。如果没有,则 mod_wsgi 的配置脚本无法确定 httpd 版本,并且您将得到 Makefile.in 的损坏的符号链接。
对我来说,libpcre.so.0 不在 LD_LIBRARY_PATH 中。这样做:
然后重新配置 mod_wsgi 并构建解决了问题。
mod_wsgi's configure script uses apxs to find the path to httpd:
Combine those with a "/" and add "-v", e.g.,
That should run without an error. If it does not then mod_wsgi's configure script can't figure out the httpd version and you will get a broken symbolic link for Makefile.in.
For me, libpcre.so.0 wasn't in the LD_LIBRARY_PATH. Doing this:
then reconfiguring mod_wsgi and building fixed the problem.