Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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.


Comment on Re: Out of memory error while installing a perl package
Select or Download Code

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 avoiding work at the Monastery: (12)
As of 2014-07-31 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls