简体   繁体   English

无法安装Apache2 :: Const模块

[英]Can not install Apache2::Const module

I have installed Apache 2.2.25 with mod_perl 2.0.7 running on Debian 7.1.0. 我已在Debian 7.1.0上安装了运行mod_perl 2.0.7的Apache 2.2.25。 During its installation mod_perl had to install module named Apache2::Const , but it didn't. 在安装过程中,mod_perl必须安装名为Apache2 :: Const的模块,但并非如此。 mod_perl have installed modules from the same group, eg Apache2::Access, Apache2::Connection, Apache2::RequestUtil. mod_perl已安装了来自同一组的模块,例如Apache2 :: Access,Apache2 :: Connection,Apache2 :: RequestUtil。

So when I use this command (i /Apache2::Const/) in cpan shell it outputs following: 因此,当我在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)

And when I use this command (install Apache2::Const): 当我使用此命令(安装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.

I've tried to run: 我试着跑:

install Apache2::ConstantsTable

But it didn't help. 但这没有帮助。

Also, when I run following script: 另外,当我运行以下脚本时:

perl -e "use v5.14.2; use Apache2::Const"

it outputs: 它输出:

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.

I tried to install this module manually (via Makefile.PL) from mod_perl package. 我试图通过mod_perl软件包手动(通过Makefile.PL)安装此模块。 I also tried to reinstall mod_perl. 我也尝试重新安装mod_perl。 Nothing helped. 没有任何帮助。

All the other Apache2::* modules works correctly. 所有其他Apache2 :: *模块均可正常工作。

I really need to install Apache2::Const module. 我真的需要安装Apache2 :: Const模块。 Thanks for your replies. 多谢您的回覆。

Solved long time ago by installing all this stuff from debian package. 很久以前通过从debian软件包安装所有这些东西来解决。 I was hard noob in linux when I posted the question. 当我发布问题时,我在linux上很难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM