DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to install some modules using cpan (for perl) and are having all sorts of issues. In particular, it seems to be complaining about the untar process:
Code:
cpan[1]> install LWP
CPAN: Storable loaded ok (v2.18)
Going to read '/root/.cpan/Metadata'
Database was generated on Tue, 01 Dec 2009 23:39:08 GMT
Running install for module 'LWP'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for G/GA/GAAS/libwww-perl-5.834.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Compress::Zlib loaded ok (v2.008)
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-5.834.tar.gz ok
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.38)
Will not use Archive::Tar, need 1.00
Uncompressed /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-5.834.tar.gz successfully
Using Tar:/bin/tar xvf "libwww-perl-5.834.tar":
Couldn't untar libwww-perl-5.834.tar
CPAN: File::Temp loaded ok (v0.18)
CPAN: Time::HiRes loaded ok (v1.9711)
Package seems to come without Makefile.PL.
(The test -f "/root/.cpan/build/GAAS-obLMip/Makefile.PL" returned false.)
Writing one on our own (setting NAME to LWP)
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Had problems unarchiving. Please build manually
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
GAAS/libwww-perl-5.834.tar.gz : unwrapped NO -- untar failed
It seems to suggest that the untar process completes, but checking /root/.cpan/sources/authors/id/G/GA/GAAS/ shows the tgz intact, and not extracted as the message might suggest.
I've looked all over the net for this one, a few people have referenced the error, but there are no definitive answers. Any help would be appreciated (As solving dependencies by manually downloading all the modules is a right pain the the ass!).
I'm a little reluctant to go down the pre-packaged perl modules path unless they have _every_ module as deb packages. I don't want to get in a situation where im using some packages and some modules I've compiled myself...it gets rather messy quickly.
Using cpan is the ideal solution for me, so I'd prefer to get that working If I can.
That should try to download and untar, but I'm guessing that if it can't it will leave the tar file out there... then you can try untarring by hand, and see why it's failing.
If the perl module you need isn't in an official repo you can check http://debian.pkgs.cpan.org/ , it usually works better than trying to build the modules yourself.
The error isn't specific to LWP, any module I try fails with the same reasons. Entering the directory where its working (/root/.cpan/sources/authors/id/G/GA/GAAS/) shows the file which has not been extracted despite 'extracted successfully'. tar is definitely installed
I ended up just using debian modules as it turns out the one I was after was included in their repo's.
It'd still be nice to know why cpan doesnt work, but I suppose it's really for my own interest now. A quick google seems to suggest i'm not the only one with the issue (no solutions though).
Using Tar:/bin/tar xvf "libwww-perl-5.834.tar":
Couldn't untar libwww-perl-5.834.tar
That's the problem, it doesn't even get a chance to compile, the untar is failing, your tar is busted or your out of space in the directory its untarring in
I had the same problem on a VM. The problem was a quota on the kernel memory. As a first shot shut down all services not needed (Database, Webserver,....) and try again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.