默认 xampp-linux 安装中缺少 config_vars.mk
我在 Ubuntu 8.10 系统上提取了 xampp 软件包 xampp-linux-1.6.7,并按照 mod_wsgi 文档中的说明进行操作。 我收到以下错误:
ravi@Ibex:~/mod_wsgi-2.3$ ./configure --with-apxs=/opt/lampp/bin/apxs
checking Apache version... cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
./configure: line 1696: /: is a directory
checking for python... /usr/bin/python
cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
我无法通过 google 搜索有关在 xampp 上运行 mod_wsgi 的说明。 请帮忙。
解决方案: 这个问题的解决方案隐藏在评论中。 感谢 Martin v. Löwis 我能够解决这个问题。 当 apxs 抛出错误并抱怨缺少 config_vars.mk 时,这意味着 Apache 的构建目录丢失。 Fox xampp 用户的解决方案是下载 xampp-dev 并将其解压到同一路径。
I extracted the xampp package xampp-linux-1.6.7 on a Ubuntu 8.10 system and followed the instuctions from mod_wsgi documentation. I get the error below:
ravi@Ibex:~/mod_wsgi-2.3$ ./configure --with-apxs=/opt/lampp/bin/apxs
checking Apache version... cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
./configure: line 1696: /: is a directory
checking for python... /usr/bin/python
cannot open /opt/lampp/build/config_vars.mk: No such file or directory at /opt/lampp/bin/apxs line 218.
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
I could not google for instructions on getting mod_wsgi running on xampp. Please help.
Solution:
The solution for this is buried in the comments. Thanks to Martin v. Löwis I was able to solve this. When apxs throws and error complaining about missing config_vars.mk it means that the build directory of Apache is missing. Fox xampp users the solution is to download xampp-dev as well and extract that to the same path.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当 apxs 抛出错误并抱怨缺少 config_vars.mk 时,这意味着 Apache 的构建目录丢失。 Fox xampp 用户的解决方案是下载 xampp-dev 并将其解压到同一路径。
When apxs throws and error complaining about missing config_vars.mk it means that the build directory of Apache is missing. Fox xampp users the solution is to download xampp-dev as well and extract that to the same path.