Subject: | PAR::Dist fails to install when zip, unzip, and Archive::Zip are all unavailable |
The module knows about the issue, because it says what's wrong in the
middle of the output, but there is no checking for these prerequisites
until 'make test', so it explodes in the user's face instead of being
polite up front.
Installing the 'zip' and 'unzip' packages on my Linux box made
everything work just fine. cpan(1) output follows:
------
# cpan PAR::Dist
CPAN: Storable loaded ok (v2.18)
Going to read /root/.cpan/Metadata
Database was generated on Wed, 10 Jun 2009 23:27:02 GMT
CPAN: YAML loaded ok (v0.66)
Going to read 43 yaml files from /root/.cpan/build/
CPAN: Time::HiRes loaded ok (v1.9711)
............................................................................DONE
Restored the state of 43 (in 0.4719 secs)
Running install for module 'PAR::Dist'
Running make for S/SM/SMUELLER/PAR-Dist-0.44.tar.gz
Has already been unwrapped into directory
/root/.cpan/build/PAR-Dist-0.44-E2HwLk
Has already been made
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00pod.t ............ skipped: Set environment variable PERL_TEST_POD=1
to test POD
t/00podcover.t ....... skipped: Set environment variable PERL_TEST_POD=1
to test POD
t/01basic.t .......... ok
t/02parsedistname.t .. ok
t/03merge_meta.t ..... PAR::Dist testers/debug info: Using 'YAML' as
YAML implementation at
/root/.cpan/build/PAR-Dist-0.44-E2HwLk/blib/lib/PAR/Dist.pm line 1354.
Found neither Archive::Zip nor ZIP/UNZIP as valid ZIP tools.
skip() needs to know $how_many tests are in the block at
t/03merge_meta.t line 22
t/03merge_meta.t ..... 1/1 Label not found for "last SKIP" at
/usr/share/perl5/site_perl/5.10.0/Test/More.pm line 1176.
BEGIN failed--compilation aborted at t/03merge_meta.t line 35.
# Looks like your test exited with 2 just after 1.
t/03merge_meta.t ..... Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
(less 1 skipped subtest: 0 okay)
Test Summary Report
-------------------
t/03merge_meta.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Files=5, Tests=8, 0 wallclock secs ( 0.03 usr 0.02 sys + 0.18 cusr
0.04 csys = 0.27 CPU)
Result: FAIL
Failed 1/5 test programs. 0/8 subtests failed.
make: *** [test_dynamic] Error 2
SMUELLER/PAR-Dist-0.44.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports SMUELLER/PAR-Dist-0.44.tar.gz
Running make install
make test had returned bad status, won't install without force