默认的 XAMPP-Linux 安装中缺少 config_vars.mk

3 投票
1 回答
2846 浏览
提问于 2025-04-11 09:35

我在一台运行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

我在网上找不到关于如何在xampp上运行mod_wsgi的说明。请帮帮我。

解决方案:这个解决方案在评论中提到。多亏了Martin v. Löwis,我才找到了解决办法。当apxs报错说缺少config_vars.mk时,这意味着Apache的构建目录缺失。对于使用xampp的用户,解决方法是下载xampp-dev,并将其解压到同样的路径下。

1 个回答

1

当 apxs 报错说缺少 config_vars.mk 文件时,这意味着 Apache 的构建目录不见了。对于使用 xampp 的用户,解决办法是下载 xampp-dev,并把它解压到同样的路径下。

撰写回答