【发布时间】:2012-06-23 02:08:04
【问题描述】:
我在尝试使用 perl 安装 apache 时非常恼火。我正在按照 mod_perl 站点上的说明进行操作:http://perl.apache.org/docs/2.0/user/install/install.html
我得到了它要求我运行这个命令的部分,但我得到一个错误:
$ perl Makefile.PL MP_APXS=/usr/local/httpd/prefork/bin/apxs
Reading Makefile.PL args from @ARGV
MP_APXS = /usr/local/httpd/prefork/bin/apxs
no conflicting prior mod_perl version found - good.
Configuring Apache/2.4.2 mod_perl/2.0.7 Perl/v5.12.3
[ error] Can't find apr include/ directory,
[ error] use MP_APR_CONFIG=/path/to/apr-config
我运行了他们建议的安装 apache 的命令来安装我的 apache:
$ ./configure --prefix=$HOME/httpd/prefork --with-mpm=prefork
$ make && make install
但我不确定这个 apr-config 应该在哪里,因为它似乎不在我的 apache2 文件夹中的任何位置。
如果这可能是个问题,我使用的是 Mac OS X 10.7.3。我知道 Mac OS X 附带 apache 服务器,但我需要在另一台计算机上从头开始安装,所以我必须在我的计算机上从头开始整个安装。
提前感谢您提供的任何帮助。
【问题讨论】:
-
我不知道有任何人在任何现实世界的场景中设法运行
mod_perl-2.0.[678]和Apache 2.4.x。见mod_perl 2.0.7 Release Notes。 -
截至 2012-06-21,没有 mod_perl 2.0.8
-
@rubber boots:如果您要参考发行说明的特定部分,最好知道它是什么
-
@ysth 2.4 内部带来了一些根本性的变化(甚至从 dev-2.3 开始),它肯定会在 R.N. 中被提及。如果最终支持 2.4.x。 (也许被一些 ascii 艺术包围。)也许应该有一个分叉 2.0.x 2.4.x 就像在 1.x 到 2.x 中一样。也许不吧。我没有参与,但请关注开发邮件列表。
-
链接已失效 - 这正是发布仅链接答案的问题..
标签: perl apache apache2 mod-perl mod-perl2