Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by compused (Acolyte)
on Feb 17, 2012 at 04:56 UTC ( [id://954400]=note: print w/replies, xml ) Need Help??


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

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

Replies are listed 'Best First'.
Re^7: Test fails: 01_Archive-Extract.t and TGZ files
by compused (Acolyte) on Feb 17, 2012 at 12:14 UTC

    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.

        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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2024-04-18 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found