1
我已经在Debian 7.1.0上安装了运行mod_perl 2.0.7的Apache 2.2.25。在安装过程中,mod_perl必须安装模块,名为Apache2 :: Const,但它没有。 mod_perl已经安装了来自同一组的模块,例如Apache2 :: Access,Apache2 :: Connection,Apache2 :: RequestUtil。无法安装Apache2 :: Const模块
所以,当我使用这个命令(I/Apache2的::常量/)在CPAN命令其输出如下:
cpan[3]> i /Apache2::Const/
Module id = Apache2::ConstantsTable
CPAN_USERID PHRED (Fred Moyer <[email protected]>)
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 ::常量):
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.
我试图(通过Makefile.PL)从mod_perl的包手动安装此模块。我也尝试重新安装mod_perl。没什么帮助。
所有其他的Apache2 :: *模块工作正常。
我真的需要安装Apache2 :: Const模块。感谢您的回复。
我认为你没有使用debian软件包?为什么不? –
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636651 –
Richard Huxton,你是什么意思?什么debian包? – user1742500