Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

DateTime::Format::DateManip testing fails on install

by TheBigAmbulance (Acolyte)
on May 04, 2012 at 15:10 UTC ( #968939=perlquestion: print w/replies, xml ) Need Help??
TheBigAmbulance has asked for the wisdom of the Perl Monks concerning the following question:

I have upgraded my system from Ubuntu 11.10 to 12.04, and a script I wrote chokes on execution looking for the module 'use DateTime::Format::DateManip;'.

dpich@dpich-M6400:~/Documents/Copyright$ perl ./ Can't locate DateTime/Format/ in @INC (@INC contains: /etc +/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib +/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./scri line 14. BEGIN failed--compilation aborted at ./ line 14. dpich@dpich-M6400:~/Documents/Copyright$

So just install the module. But....

dpich@dpich-M6400:~/Documents/Copyright$ sudo perl -MCPAN -e 'install +DateTime::Format::DateManip' Reading '/root/.cpan/Metadata' Database was generated on Fri, 04 May 2012 03:27:03 GMT Running install for module 'DateTime::Format::DateManip' Running make for B/BB/BBENNETT/dt-fmt-datemanip/DateTime-Format-DateMa +nip-0.04.tar.gz Checksum for /root/.cpan/sources/authors/id/B/BB/BBENNETT/dt-fmt-datem +anip/DateTime-Format-DateManip-0.04.tar.gz ok Building B/BB/BBENNETT/dt-fmt-datemanip/DateTime-Format-Dat +eManip-0.04.tar.gz Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'DateTime-Format-DateManip' version '0 +.04' Building DateTime-Format-DateManip BBENNETT/dt-fmt-datemanip/DateTime-Format-DateManip-0.04.tar.gz ./Build -- OK Running Build test t/00load.t ......... ok t/01conversions.t .. 1/6 # Failed test 'Parse Date 'March 23, 2003'' # at t/01conversions.t line 67. # got: '2003-03-22T09:00:00.000000000 EST # ' # expected: '2003-03-23T00:00:00.000000000 EST # ' # Failed test 'Format Date '2003-03-23T00:00:00'' # at t/01conversions.t line 73. # got: '2003032318:00:00' # expected: '2003032303:00:00' # Failed test 'Format Date '2003-03-23T12:00:00'' # at t/01conversions.t line 73. # got: '2003032406:00:00' # expected: '2003032315:00:00' # Looks like you failed 3 tests of 6. t/01conversions.t .. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/6 subtests Test Summary Report ------------------- t/01conversions.t (Wstat: 768 Tests: 6 Failed: 3) Failed tests: 1, 3-4 Non-zero exit status: 3 Files=2, Tests=7, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.73 cusr + 0.05 csys = 0.81 CPU) Result: FAIL Failed 1/2 test programs. 3/7 subtests failed. BBENNETT/dt-fmt-datemanip/DateTime-Format-DateManip-0.04.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports BBENNETT/dt-fmt-datemanip/DateTime-Format-DateManip-0.04.tar +.gz Running Build install make test had returned bad status, won't install without force dpich@dpich-M6400:~/Documents/Copyright$
Anyone have any experience or words of advice on this one?

Replies are listed 'Best First'.
Re: DateTime::Format::DateManip testing fails on install
by marto (Bishop) on May 04, 2012 at 15:32 UTC
      This is a bug in the test, not the module, so it's you can safely force the installation of the module.
Re: DateTime::Format::DateManip testing fails on install
by Anonymous Monk on May 04, 2012 at 15:23 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://968939]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-03-24 10:58 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.