Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Out of memory error while installing a perl package

by DrHyde (Prior)
on Jun 03, 2013 at 10:42 UTC ( #1036712=note: print w/replies, xml ) Need Help??


in reply to Out of memory error while installing a perl package

On a 32 bit machine your processes are limited to addressing 4GB max, which the OS might then further reduce.

But your real problem is that Archive::Tar is a big fat pig that makes very poor use of memory. Install a proper tar command and tell CPAN.pm where to find it:

$ perl -MCPAN -eshell > o conf tar /usr/local/bin/tar (or whatever path is traditional on Windows) > o conf commit > quit

This is why in CPAN::ParseDistribution there is a use_tar option.

Incidentally, CPAN::ParseDistribution fails its tests on Windows, because of problems with forking and signals. If anyone thinks that they can fix it, patches are most welcome on Github. People saying "have you tried X Y and Z?", on the other hand, are not welcome, as I don't have a Windows licence, have no intention of getting one, and have no intention of learning how to drive Windows. If you think you can help, do please get in touch by email.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2016-09-30 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (569 votes). Check out past polls.