perl CPAN fails install DateTime::TimeZone

January 26th, 2014

doing a simple

perl -MCPAN -e shell
install DateTime::TimeZone

the screen starting throwing LOTS of errors at me. And they end along the lines of:

... skipped lots of output ...
t/10deprecated.t   (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=12, Tests=0,  0 wallclock secs ( 0.04 usr  0.03 sys +  0.26 cusr  0.05 csys =  0.38 CPU)
Result: FAIL
Failed 10/12 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

That does not look so promising - does it?

Actually the fix was easier than the output had let me to believe. Scrolling up I saw there were lots of errors starting like

Can't locate Params/ in @INC ...

When I tried to do a

install Params::Validate

I got a similar error - just now Attribute/

Much to my happiness

install Attribute::Handlers

actually worked. After that Params/Validate could be installed and finally I was back on track with installing the module that I actually wanted.

I do not know why my CPAN install is not having the right understanding of its proper pre requisites. Since this worked for me I probably will not find out …