安装 mod_WSGI 时遇到问题 - 找不到输入文件

发布于 2024-10-07 19:24:04 字数 350 浏览 3 评论 0原文

我正在尝试设置 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

久隐师 2024-10-14 19:24:04

我遇到了完全相同的问题。安装 apache2-dev 包解决了这个问题。

sudo apt-get install apache2-dev

我认为提问者不再需要这个答案,所以我为未来有类似问题的读者回答

I had the exact same problem. Installing the apache2-dev package solved it.

sudo apt-get install apache2-dev

I don't think the asker needs this answer anymore, so I answered for future readers with similar problems

云朵有点甜 2024-10-14 19:24:04

安装 apache2-threaded-dev:

$ sudo apt-get install apache2-threaded-dev

Install apache2-threaded-dev:

$ sudo apt-get install apache2-threaded-dev
抱着落日 2024-10-14 19:24:04

我开始写道,您可能需要确保安装了 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.

淑女气质 2024-10-14 19:24:04

您正在 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.

长伴 2024-10-14 19:24:04

mod_wsgi 的配置脚本使用 apxs 来查找 httpd 的路径:

apxs -q SBINDIR

apxs -q TARGET

将它们与“/”组合并添加“-v”,例如,

/blah/bin/httpd -v

运行时应该不会出现错误。如果没有,则 mod_wsgi 的配置脚本无法确定 httpd 版本,并且您将得到 Makefile.in 的损坏的符号链接。

对我来说,libpcre.so.0 不在 LD_LIBRARY_PATH 中。这样做:

export LD_LIBRARY_PATH=/usr/local/lib

然后重新配置 mod_wsgi 并构建解决了问题。

mod_wsgi's configure script uses apxs to find the path to httpd:

apxs -q SBINDIR

apxs -q TARGET

Combine those with a "/" and add "-v", e.g.,

/blah/bin/httpd -v

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:

export LD_LIBRARY_PATH=/usr/local/lib

then reconfiguring mod_wsgi and building fixed the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文