Perl DateTime::TimeZone 未找到(Bugzilla 安装)
我正在尝试在我的 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).
我该如何解决这个问题?
I am trying to install Bugzilla on my Centos server. but I got this error:
Checking for DateTime-TimeZone (v0.71) not found
and
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
If I run: /usr/bin/perl install-module.pl DateTime::TimeZone
then I get this:
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).
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我在升级时也遇到了同样的问题。 DateTime::TimeZone 模块似乎已安装,但 Bugzilla
checksetup.pl
脚本始终报告未找到该模块。以下内容为我解决了问题(从 Bugzilla 安装目录运行):我通过编写两行 perl 脚本来模拟 Bugzilla 完成的检查发现了这一点:
然后运行它以查看错误:
安装上述模块后 < code>foo.pl 脚本通过,Bugzilla
checksetup.pl
也通过。I was having the same problem when upgrading. The DateTime::TimeZone module appeared to be installed but the Bugzilla
checksetup.pl
script always reported that it was not found. The following fixed the problem for me (run from the Bugzilla install dir):I found this by writing a two line perl script to simulate the check done by Bugzilla:
and then running it to see the errors:
After installing the above modules the
foo.pl
script passes and so does Bugzillachecksetup.pl
.我遇到了同样的问题,此链接
I have the same problem and the solution given in this link
我猜您已经在您的用户帐户下安装了 DateTime-TimeZone,网络服务器或'root'帐户无法访问该帐户。尝试通过包管理器简单安装:
I'd guess you have installed DateTime-TimeZone under your user account which is not accessible to the web server or the 'root' account. Try simply installing via your package manager:
我也遇到过这个问题。我不确定为什么找不到时区。
我简单地研究了代码并尝试更改 TimeZone 的版本号以使其正常工作,但它总是显示“未找到”。
最终,我只是注释掉了它试图进行检查的行。然后它允许我安装。 (在每行的开头添加哈希值)
这看起来确实像是 Bugzilla 中的一个错误。我建议举报。
I was experiencing this problem too. I'm not sure why it's not finding TimeZone.
I've dug briefly into the code and tried changing the version numbers of TimeZone to make it work, but it always says "not found".
Eventually, I just commented out the lines where it was trying to do the check. It then allowed me to install. (Add hashes to the beginning of each line)
This does seem like a bug in Bugzilla. I suggest reporting it.