in reply to Re^6: Test fails: 01_Archive-Extract.t and TGZ files
in thread Test fails: 01_Archive-Extract.t and TGZ files

Hi Bingos

You set me on the right direction, as Archive::Extract will now install via cpan without error (see below)

I installed the full version of 'unzip':

wget http://downloads.sourceforge.net/infozip/unzip60.tar.gz

so that now, instead of the link to busybox 1.10 we see:

unzip --help UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler.

and the sweet output of a successful install:

cpan[1]> install Archive::Extract Going to read '/share/MD0_DATA/.cpan/Metadata' Database was generated on Thu, 16 Feb 2012 11:10:54 GMT Running install for module 'Archive::Extract' Running make for B/BI/BINGOS/Archive-Extract-0.58.tar.gz Checksum for /share/MD0_DATA/.cpan/sources/authors/id/B/BI/BINGOS/Arch +ive-Extract-0.58.tar.gz ok Scanning cache /share/MD0_DATA/.cpan/build_dir for sizes ...................................................................... +......DONE 'YAML' not installed, will not store persistent state CPAN.pm: Going to build B/BI/BINGOS/Archive-Extract-0.58.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Archive::Extract Writing MYMETA.yml cp lib/Archive/Extract.pm blib/lib/Archive/Extract.pm BINGOS/Archive-Extract-0.58.tar.gz /share/MD0_DATA/.qpkg/Optware/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /share/MD0_DATA/.qpkg/Optware/bin/perl "-MExtUtils:: +Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_Archive-Extract.t .. ok All tests successful. Files=1, Tests=1584, 12 wallclock secs ( 1.30 usr 0.06 sys + 7.96 cu +sr 2.63 csys = 11.95 CPU) Result: PASS BINGOS/Archive-Extract-0.58.tar.gz /share/MD0_DATA/.qpkg/Optware/bin/make test -- OK Running make install Installing /share/MD0_DATA/lib/perl5/5.14.2/Archive/Extract.pm Appending installation info to /share/MD0_DATA/lib/perl5/5.14.2/armv5t +el-linux-thread-multi/perllocal.pod BINGOS/Archive-Extract-0.58.tar.gz /opt/bin/make install -- OK

However I think I need to reconfigure cpan via o conf as my previous Extract.pm has not been overwritten!

Replies are listed 'Best First'.
Re^8: Test fails: 01_Archive-Extract.t and TGZ files
by bingos (Vicar) on Feb 20, 2012 at 20:28 UTC

    Ah! Thanks for the update. I didn't know that busybox included an unzip

    UPDATE: I have shipped version 0.60 to CPAN which should address the edge-case with busybox's unzip. Many thanks.

      Thanks Again

      I will write this all up in a qnap forum, given the Blessing of the Monks of course!

      Problem
      I am trying to find which Extract.pm is in use but:

      [~] # perl -MExtract -E 'say $INC{"Extract.pm"}' Can't locate Extract.pm in @INC (@INC contains: /opt/lib/perl5/site_/5 +.14.2/armv5tel-linux-thread-multi /opt/lib/perl5/site_/5.14.2 /opt/li +b/perl5/5.14.2/armv5tel-linux-thread-multi /opt/lib/perl5/5.14.2 .). BEGIN failed--compilation aborted.

      I got this code from:

      www.perlmonks.org/?node_id=954737

      but running this code shows it is present:

      perldoc -l Archive::Extract /opt/lib/perl5/5.14.2/Archive/Extract.pm

      what is the problem?

        There's no Extract.pm:-). Here's a different way to do it:
        /opt/perl-5.14.2/bin/perl -MArchive::Extract -e 'print "$Archive::Extr +act::VERSION"'