我已在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。
因此,当我在cpan shell中使用此命令(i / Apache2 :: Const /)时,它将输出以下内容:
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 :: 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软件包安装所有这些东西来解决。当我发布问题时,我在linux上很难。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句