Can't install perl mods via cpan shell

Brendan O'Dea bod at debian.org
Wed Jan 14 12:47:11 UTC 2009


On Wed, Jan 14, 2009 at 7:54 AM, Bobber <bobber at kc0dxf.net> wrote:
> I have been having problems installing modules via cpan on lenny.  I have a
> three machines which exhibit the same behavior.  For example, here's the
> output of free from one of my servers:
>>
>> free -m
>>             total       used       free     shared    buffers     cached
>> Mem:          3547        152       3395          0          9        102
>> -/+ buffers/cache:         39       3507
>> Swap:         2384          0       2384
>
> Here's the kernel I am using:
>>
>> Linux ftp2 2.6.26-1-686 #1 SMP Mon Dec 15 18:15:07 UTC 2008 i686 GNU/Linux
>
> When I try doing cpan -i CPAN, I get an out of memory error.
>
> Any ideas on what is causing this?

Absolutely no idea.  On a minimal install of unstable (don't have a
testing machine at hand, sorry) this works for me on a machine with
128Mb of RAM.

  $ cpan -i CPAN
  [questions, copious output]
  Installing /usr/local/bin/cpan
  Writing /usr/local/lib/perl/5.10.0/auto/CPAN/.packlist
  Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
    ANDK/CPAN-1.9301.tar.gz
    /usr/bin/make install  -- OK
  Warning (usually harmless): 'YAML' not installed, will not store
persistent state

To test that the locally installed CPAN module also works, I ran:

  $ /usr/local/bin/cpan -i YAML
  [more output]
  Appending installation info to /usr/local/lib/perl/5.10.0/perllocal.pod
    INGY/YAML-0.68.tar.gz
    /usr/bin/make install  -- OK
  CPAN: YAML loaded ok (v0.68)
  Going to read 1 yaml file from /home/bod/.cpan/build/
  ............................................................................DONE
  Restored the state of 1 (in 0.6080 secs)

--bod



More information about the Perl-maintainers mailing list