Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 | 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 ;) – mveroone Oct 31 '13 at 8:28

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 by the program/system developers. You may try to contact them to report the problem.


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

sudo curl -L | perl - --sudo App::cpanminus


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
up vote 0 down vote accepted

I confirm that the final answer to my question is :

sudo curl -L | perl - --sudo App::cpanminus
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .