【发布时间】:2023-03-27 04:26:01
【问题描述】:
我已经安装了 Apache 2.2.25,mod_perl 2.0.7 在 Debian 7.1.0 上运行。在安装过程中 mod_perl 必须安装名为 Apache2::Const 的模块,但它没有。 mod_perl 已安装来自同一组的模块,例如Apache2::Access、Apache2::Connection、Apache2::RequestUtil。
因此,当我在 cpan shell 中使用此命令 (i /Apache2::Const/) 时,它会输出以下内容:
cpan[3]> i /Apache2::Const/
Module id = Apache2::ConstantsTable
CPAN_USERID PHRED (Fred Moyer <fred@redhotpenguin.com>)
CPAN_VERSION undef
CPAN_FILE P/PH/PHRED/mod_perl-2.0.8.tar.gz
UPLOAD_DATE 2013-04-18
INST_FILE (not installed)
当我使用这个命令时(安装 Apache2::Const):
cpan[4]> install Apache2::Const
Warning: Cannot install Apache2::Const, don't know what it is.
Try the command
i /Apache2::Const/
to find objects with matching identifiers.
我尝试过运行:
install Apache2::ConstantsTable
但这并没有帮助。
另外,当我运行以下脚本时:
perl -e "use v5.14.2; use Apache2::Const"
它输出:
Not a CODE reference at /usr/lib/perl/5.14/DynaLoader.pm line 207.
END failed--call queue aborted at /usr/local/lib/perl/5.14.2/ModPerl/Const.pm line 207.
Compilation failed in require at /usr/local/lib/perl/5.14.2/Apache2/Const.pm line 18.
BEGIN failed--compilation aborted at /usr/local/lib/perl/5.14.2/Apache2/Const.pm line 18.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
我尝试从 mod_perl 包手动安装这个模块(通过 Makefile.PL)。我还尝试重新安装 mod_perl。没有任何帮助。
所有其他 Apache2::* 模块都能正常工作。
我真的需要安装 Apache2::Const 模块。感谢您的回复。
【问题讨论】:
-
我认为您没有使用 debian 软件包?为什么不呢?
-
理查德·赫克斯顿,你是什么意思?什么debian包?
标签: perl apache module failed-installation mod-perl2