I'm installing Archive::Zip via CPAN, and it's erroring out during the Make Test.

Any idea why this is failing?

It looks like I'm faling this test:

eval { ($fh1, $name3) = Archive::Zip::tempFile("ziptest"); }; ok($@, "Test that tempfile() failed"); is($fh1, undef, "Test correct returns from failed tempFile call" ); is($name3, undef, "Test correct returns from failed tempFile call"); ok(chmod(0700, 'ziptest'), "chmod ziptemp directory to cleanup"); is(rmdir('ziptest'), 1, "Remove ziptemp") || diag $!; ok(! -d 'ziptest', "Was ziptest deleted?");
Here is my output from CPAN:
Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load...........ok 2/2# Testing Archive::Zip 1.15, Perl 5.008006, +/usr/bin/perl t/00.load...........ok t/pod...............ok t/test..............ok t/testex............ok t/testMemberRead....ok t/testTree..........ok t/testUpdate........ok t/za_archive_zip....NOK 15# Failed test (t/za_archive_zip.t at lin +e 42) t/za_archive_zip....NOK 16# Failed test (t/za_archive_zip.t at lin +e 43) # got: 'IO::File=GLOB(0x923712c)' # expected: undef t/za_archive_zip....NOK 17# Failed test (t/za_archive_zip.t at lin +e 44) # got: 'ziptest/KMLGObEMyp.zip' # expected: undef t/za_archive_zip....NOK 19# Failed test (t/za_archive_zip.t at lin +e 46) # got: '0' # expected: '1' # Directory not empty t/za_archive_zip....NOK 20# Failed test (t/za_archive_zip.t at lin +e 47) t/za_archive_zip....ok 22/0# Looks like you failed 5 tests of 22. t/za_archive_zip....dubious Test returned status 5 (wstat 1280, 0x500) DIED. FAILED tests 15-17, 19-20 Failed 5/22 tests, 77.27% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/za_archive_zip.t 5 1280 22 5 22.73% 15-17 19-20 Failed 1/8 test scripts, 87.50% okay. 5/195 subtests failed, 97.44% ok +ay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK cpan>

In reply to Archive::Zip - CPAN - Install Failing by awohld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.