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

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 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036712]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2018-06-20 03:57 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.