Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Test fails: 01_Archive-Extract.t and TGZ files

by bingos (Vicar)
on Feb 16, 2012 at 22:21 UTC ( #954349=note: print w/ replies, xml ) Need Help??


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

A forced install would be with force install instead of just install

But before you do that, it does look like all the tests involving binary extractor programs failed for some reason.

I surmise that you are using some sort of QNAP NAS device with the Optware packages installed and it's packaged perl

What would be a big favour is to run the following in the Archive-Extract directory and post the output, please:

perl -Ilib -MArchive::Extract -e 'print "$_\n" for map { join " ", $_, + Archive::Extract->$_ } qw(bin_gzip bin_unzip bin_tar bin_bunzip2 bin +_uncompress bin_unlzma bin_unxz);'


Comment on Re^5: Test fails: 01_Archive-Extract.t and TGZ files
Download Code
Re^6: Test fails: 01_Archive-Extract.t and TGZ files
by compused (Acolyte) on Feb 17, 2012 at 04:56 UTC

    Thanks again; output shows:

    [/share/MD0_DATA/.cpan/build_dir/Archive-Extract-0.58-SYDw3d] # < "$_\n" for map { join " ", $_, Archive::Extract->$_ } qw(bin_gzip bi +n_unzip bin_tar bin_bunzip2 bin_uncompress bin_unlzma bin_unxz);' bin_gzip /opt/bin/gzip bin_unzip /usr/bin/unzip bin_tar /opt/bin/tar bin_bunzip2 /usr/bin/bunzip2 bin_uncompress /opt/bin/uncompress bin_unlzma bin_unxz

    I notice there are two missing; I had previously downloaded the latest binaries thinking that might help:

    # /opt/bin/uncompress --version gunzip (gzip) 1.4 /opt/bin/gzip --version gzip 1.4 # /opt/bin/tar --version tar (GNU tar) 1.26 # /usr/bin/bunzip2 --version bzip2, a block-sorting file compressor. Version 1.0.6, 6-Sept-2010. # /usr/bin/unzip --version /usr/bin/unzip: invalid option -- - BusyBox v1.10.3 (2010-05-17 05:57:25 UTC) multi-call binary

      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!

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954349]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-09-21 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls