I'm trying to upgrade CPAN in latest and most upgraded Raspbian. I run this on a Raspberry Pi A with 256 MB RAM of which 32 MB is graphics memory. Cpan doesn't complain about being out of memory, but it can't unarchive. I have installed gcc-4.7 which seems to be required to compile inside cpan. My goal is to install Tkx after upgrading CPAN:
formatting link
. I've done this in Ubuntu
14.04 for x86-32. There is no libtkx-perl for Raspbian or Ubuntu, but there was for earlier versions of Debian:
formatting link
Now I try to install Tkx using the old CPAN, but it locks me out of the system due to high CPU-load. When the screen-saver started I can't interrupt it. I can't login using SSH. I can't use the Alt+F1 terminal I run startx from since the screensaver can't be interrupted. I thought Linux prioritized user input, but I don't think Linux works that well if it locks out the user when the CPU-load is high -- it would be better if it compiled Perl-modules at a lower pace and let the user issue commands. Even if this would be due to low memory a good operating system would handle that by sending a message about low memory and then terminate the operation of cpan. Update: Now the installation of Tkx seems to have hung completely and the OS can't be contacted, but the green light for SD-card access is permanently on.
Is there anyone here that has succeeded in upgrading CPAN to 2.05. I think Perl without a useable cpan would be rather useless.
I configured cpan to use sudo -- the same configuration works in Ubuntu.
Here is the session:
pi@pi1a ~ $ cpan Terminal does not support AddHistory.
cpan shell -- CPAN exploration and modules installation (v1.960001) Enter 'h' for help.
cpan[1]> install CPAN Fetching with HTTP::Tiny:
formatting link
Going to read '/home/pi/.cpan/sources/authors/01mailrc.txt.gz' ............................................................................DONE Fetching with HTTP::Tiny:
formatting link
Going to read '/home/pi/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Fri, 27 Feb 2015 18:53:27 GMT HTTP::Date not available .............. New CPAN.pm version (v2.05) available. [Currently running version is v1.960001] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session.
..............................................................DONE Fetching with HTTP::Tiny:
formatting link
Going to read '/home/pi/.cpan/sources/modules/03modlist.data.gz' DONE Going to write /home/pi/.cpan/Metadata Running install for module 'CPAN' Running make for A/AN/ANDK/CPAN-2.05.tar.gz Fetching with HTTP::Tiny:
formatting link
Fetching with HTTP::Tiny:
formatting link
Checksum for /home/pi/.cpan/sources/authors/id/A/AN/ANDK/CPAN-2.05.tar.gz ok Scanning cache /home/pi/.cpan/build for sizes Use of uninitialized value $newdir in substitution (s///) at /usr/lib/perl/5.14/Cwd.pm line 330. Use of uninitialized value $newdir in chdir at /usr/lib/perl/5.14/Cwd.pm line 338. Use of chdir('') or chdir(undef) as chdir() is deprecated at /usr/lib/perl/5.14/Cwd.pm line 338. Use of uninitialized value $newdir in pattern match (m//) at /usr/lib/perl/5.14/Cwd.pm line 353. Use of uninitialized value $newdir in split at /usr/lib/perl/5.14/Cwd.pm line 359. DONE Uncompressed /home/pi/.cpan/sources/authors/id/A/AN/ANDK/CPAN-2.05.tar.gz successfully Using Tar:/bin/tar xf "CPAN-2.05.tar": Couldn't untar CPAN-2.05.tar Package seems to come without Makefile.PL. (The test -f "/home/pi/.cpan/build/ANDK-kgV6rc/Makefile.PL" returned false.) Writing one on our own (setting NAME to CPAN) Had problems unarchiving. Please build manually Running make test Make had some problems, won't test Running make install Make had some problems, won't install Failed during this command: ANDK/CPAN-2.05.tar.gz : unwrapped NO -- untar failed
cpan[2]>