When installing DateTime for Perl I get the following errors and it fails;
# 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.
The full output is quite long so I have pasted it here: http://pastebin.com/raw.php?i=JiJeH4ij
I’m new to Perl modules and thusly, completely lost. What’s going on here?
UPDATE:
$ 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
This is likely your problem.
Your copy of the CPAN client is so out of date it does not recognize the “new” (by which I mean 10 years old)
Build.PLmodule build and install mechanism. CPAN instead wrote its own installer and tried to do the installation anyway. This will work for many Perl modules, but it probably missed some subtlety required by DateTime.Upgrade the CPAN client, you can do it with the CPAN client, and then try again.