Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install a Perl module like this :

pi@raspbmc:~$ sudo cpan HTTP::Date

Cpan get the file Checksum is ok uncompressed successfully

But I got this error :

Using Tar:/bin/tar xf "HTTP-Date-6.02.tar":
Couldn't untar HTTP-Date-6.02.tar: 'Cannot allocate memory'

Any ideas ?

My filesystem :

Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p2   15G  2.1G   12G  16% /
/dev/mmcblk0p1   69M  8.1M   61M  12% /boot

EDIT : I tryed

curl -L http://cpanmin.us | perl - App::cpanminus 

But when I do

sudo cpanm HTTP::Date

I got this error :

-bash: cpanm: command not found
share|improve this question
    
what about free -m? Typpically, when your error talks about memory which cannot be allcoated, check that you have allocatable memory ;) –  Kwaio Oct 31 '13 at 8:28

1 Answer 1

up vote 0 down vote accepted

This is unfortunately the tell-tale sign of a memory leakage. This command

ps --sort -rss -eo rss,pid,command | head

will tell you who the culprit is. Solving a problem like this is way above my pay grade, since it can basically be done only the program/system developers. You may try to contact them to report the problem.

Edit:

Don't you have the curl command wrong? Should it not be

sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus

instead?

share|improve this answer
    
This is why I'm trying with cpanm but not found. Any idea ? –  RaspDealer Oct 31 '13 at 10:59
    
Not much of a choice, I am afraid. –  MariusMatutiae Oct 31 '13 at 11:01
    
Could you pls check the Edit to my answer? –  MariusMatutiae Oct 31 '13 at 11:10
    
Thanks my cpanm cmd was wrong. Why readd --sudo ? –  RaspDealer Oct 31 '13 at 13:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.