我想在我的Centos服务器上安装Bugzilla.但是我收到了这个错误:
Checking for DateTime-TimeZone (v0.71) not found
和
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
如果我运行:/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).
我怎样才能解决这个问题?
解决方法
我在升级时遇到了同样的问题.似乎已安装DateTime :: TimeZone模块,但Bugzilla checksetup.pl脚本始终报告未找到它.以下修复了我的问题(从Bugzilla安装目录运行):
$perl install-module.pl Params::Util $perl install-module.pl Module::Runtime
我发现这是通过编写两行perl脚本来模拟Bugzilla完成的检查:
use lib qw(. lib); use DateTime::TimeZone;
然后运行它来查看错误:
perl /tmp/foo.pl
安装上述模块后,foo.pl脚本会通过,Bugzilla checksetup.pl也会通过.