gpt4 book ai didi

perl - 安装 Perl 日期时间

转载 作者:行者123 更新时间:2023-12-01 07:29:07 24 4
gpt4 key购买 nike

在为 Perl 安装 DateTime 时,出现以下错误并且失败;

#   Failed test 'Make sure we can add 50 years worth of years in America/New_York time zone'
# at t/30future-tz.t line 45.
Use of uninitialized value in numeric ge (>=) at /home/bensley/.cpan/build/DateTime-0.72/blib/lib/DateTime.pm line 138.

# Failed test 'Make sure we can add 50 years worth of days in America/Chicago time zone'
# at t/30future-tz.t line 45.
Use of uninitialized value in numeric ge (>=) at /home/bensley/.cpan/build/DateTime-0.72/blib/lib/DateTime.pm line 138.

# Failed test 'Make sure we can add 50 years worth of minutes in America/Denver time zone'
# at t/30future-tz.t line 45.
Use of uninitialized value in numeric ge (>=) at /home/bensley/.cpan/build/DateTime-0.72/blib/lib/DateTime.pm line 138.

# Failed test 'Make sure we can add 50 years worth of seconds in America/Los_Angeles time zone'
# at t/30future-tz.t line 45.
Use of uninitialized value in numeric ge (>=) at /home/bensley/.cpan/build/DateTime-0.72/blib/lib/DateTime.pm line 138.

# Failed test 'Make sure we can add 50 years worth of nanoseconds in America/North_Dakota/Center time zone'
# at t/30future-tz.t line 45.

完整的输出很长,所以我把它贴在这里: http://pastebin.com/raw.php?i=JiJeH4ij

我是 Perl 模块的新手,因此完全迷路了。这里发生了什么?

更新:
$ perl --version

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.4 LTS
Release: 8.04
Codename: hardy

最佳答案

这很可能是你的问题。

Package seems to come without Makefile.PL.
(The test -f "/home/bensley/.cpan/build/DateTime-0.72/Makefile.PL" returned false.)
Writing one on our own (setting NAME to DateTime)

您的 CPAN 客户端副本已经过时,无法识别"new"(我的意思是 10 岁) Build.PL模块构建和安装机制。相反,CPAN 编写了自己的安装程序并尝试进行安装。这适用于许多 Perl 模块,但它可能错过了 DateTime 所需的一些微妙之处。

升级CPAN客户端,你可以用CPAN客户端做,然后再试一次。

关于perl - 安装 Perl 日期时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9601516/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com