Corpocrat Blog


Daily Blog from Internet Entrepreneur/Webmaster

Perl modules CPAN error memory allocation

Posted by pbu

i was trying to install some perl modules to ispconfig and i kept on getting the error with memory allocation problem

perl -MCPAN -e shell
install HTML::Parser
install DB_File
install Net::DNS (when prompted to enable tests, choose "no")
install Digest::SHA1

Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Could not pipe[/bin/gzip --decompress --stdout /root/.cpan/sources/authors/01mailrc.txt.gz |]: Cannot allocate memory at /usr/lib/perl5/5.8.8/CPAN.pm line 5726, line 3.

To fix: Free system RAM

Most of my system RAM were consumed by httpd and mysql. so i stopped them temporarily and bingo! it worked for me. i was sucessfully able to install perl modules.

/etc/init.d/httpd stop
/etc/init.d/mysqld stop

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • feedmelinks
  • Furl
  • Fleck
  • MyShare
  • NewsVine
  • Netscape
  • Slashdot
  • Spurl
  • StumbleUpon
  • Taggly
  • Technorati
  • Wists
  • YahooMyWeb

Leave a Reply