in reply to Cpan utility fails with low memory

You can try to lower the amount of memory that CPAN needs by installing CPAN::SQLite, but cpanm was written initially for low-memory environments.