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

发布于 2024-12-08 17:07:00 字数 739 浏览 3 评论 0原文

我正在尝试在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

旧时浪漫 2024-12-15 17:07:00

我在升级时也遇到了同样的问题。 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

安装上述模块后 < 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):

$ perl install-module.pl Params::Util
$ perl install-module.pl Module::Runtime

I found this by writing a two line perl script to simulate the check done by Bugzilla:

use lib qw(. lib);
use DateTime::TimeZone;

and then running it to see the errors:

perl /tmp/foo.pl

After installing the above modules the foo.pl script passes and so does Bugzilla checksetup.pl.

眼眸里的快感 2024-12-15 17:07:00

我遇到了同样的问题,此链接

类似 /usr/bin/perl install-module.pl Module::Build 的内容可能是
足够了,尽管我认为 Module::Bundle 是标准的
佩尔

I have the same problem and the solution given in this link

Something like /usr/bin/perl install-module.pl Module::Build may be
enough, although I would have thought that Module::Bundle is standard
perl

舞袖。长 2024-12-15 17:07:00

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

yum install 'perl(DateTime::TimeZone)'

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:

yum install 'perl(DateTime::TimeZone)'
羁客 2024-12-15 17:07:00

我也遇到过这个问题。我不确定为什么找不到时区。

我简单地研究了代码并尝试更改 TimeZone 的版本号以使其正常工作,但它总是显示“未找到”。

最终,我只是注释掉了它试图进行检查的行。然后它允许我安装。 (在每行的开头添加哈希值)

#    {
#        package => 'DateTime-TimeZone',
#        module  => 'DateTime::TimeZone',
#        version => ON_WINDOWS ? '0.79' : '0.71'
#    },

这看起来确实像是 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)

#    {
#        package => 'DateTime-TimeZone',
#        module  => 'DateTime::TimeZone',
#        version => ON_WINDOWS ? '0.79' : '0.71'
#    },

This does seem like a bug in Bugzilla. I suggest reporting it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文