Perl DateTime ::找不到TimeZone(Bugzilla安装)

Xia*_*ili 8 perl bugzilla centos5

我想在我的Centos服务器上安装Bugzilla.但是我收到了这个错误:

Checking for   DateTime-TimeZone (v0.71)    not found 
Run Code Online (Sandbox Code Playgroud)

    COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands
    and then re-run this script):
    /usr/bin/perl install-module.pl DateTime::TimeZone
Run Code Online (Sandbox Code Playgroud)

如果我跑: /usr/bin/perl install-module.pl DateTime::TimeZone

然后我明白了:

    CPAN: Storable loaded ok (v2.15)Reading '/root/.cpan/Metadata'
    Database was generated on Sun, 09 Oct 2011 17:27:24 GMT
    Installing DateTime::TimeZone version 1.39...
    CPAN: Module::CoreList loaded ok (v2.56)
    DateTime::TimeZone is up to date (1.39).
Run Code Online (Sandbox Code Playgroud)

我怎样才能解决这个问题?

mgk*_*mgk 9

我在升级时遇到了同样的问题.似乎已安装DateTime :: TimeZone模块,但Bugzilla checksetup.pl脚本始终报告未找到它.以下修复了我的问题(从Bugzilla安装目录运行):

$ perl install-module.pl Params::Util
$ perl install-module.pl Module::Runtime
Run Code Online (Sandbox Code Playgroud)

我发现这是通过编写两行perl脚本来模拟Bugzilla完成的检查:

use lib qw(. lib);
use DateTime::TimeZone;
Run Code Online (Sandbox Code Playgroud)

然后运行它来查看错误:

perl /tmp/foo.pl
Run Code Online (Sandbox Code Playgroud)

安装上述模块后,foo.pl脚本会通过,Bugzilla也会通过checksetup.pl.


Mic*_*elB 1

猜您已经在您的用户帐户下安装了 DateTime-TimeZone,网络服务器或“root”帐户无法访问该帐户。尝试通过包管理器简单安装:

yum install 'perl(DateTime::TimeZone)'
Run Code Online (Sandbox Code Playgroud)