Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Perl 无法安装Apache2::Const模块_Perl_Apache_Module_Failed Installation_Mod Perl2 - Fatal编程技术网

Perl 无法安装Apache2::Const模块

Perl 无法安装Apache2::Const模块,perl,apache,module,failed-installation,mod-perl2,Perl,Apache,Module,Failed Installation,Mod Perl2,我已经安装了Apache2.2.25,其中mod_Perl2.0.7在Debian 7.1.0上运行。在安装过程中,mod_perl必须安装名为Apache2::Const的模块,但它没有安装。mod_perl安装了来自同一组的模块,例如Apache2::Access、Apache2::Connection、Apache2::RequestUtil 因此,当我在CPANshell中使用此命令(I/Apache2::Const/)时,它会输出以下内容: cpan[3]> i /Apache2

我已经安装了Apache2.2.25,其中mod_Perl2.0.7在Debian 7.1.0上运行。在安装过程中,mod_perl必须安装名为Apache2::Const的模块,但它没有安装。mod_perl安装了来自同一组的模块,例如Apache2::Access、Apache2::Connection、Apache2::RequestUtil

因此,当我在CPANshell中使用此命令(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)
我试着跑:

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很在行。

我想你不是在使用debian软件包吧?为什么不?Richard Huxton,你什么意思?什么debian软件包?
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.