17

I'm trying to install some perl module but everytime this message is shown

  New CPAN.pm version (v2.00) 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.

I've tried to do

install CPAN
reload cpan

With

pi@raspbmc:~$ sudo perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.960001)
Enter 'h' for help.

cpan[1]> install CPAN

But the result is

Going to read '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Going to read '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Mon, 28 Oct 2013 23:41:06 GMT
  HTTP::Date not available
  ..............
  New CPAN.pm version (v2.00) 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.


...............pi@raspbmc:~$ 

The version is still 1.960001.

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
TheLazyFox
  • 1,065
  • 3
  • 11
  • 27

2 Answers2

28

The following procedure

  1. kuz1@banana:~$ sudo perl -MCPAN -e shell
  2. cpan[1]> install CPAN
  3. cpan[2]> reload cpan

works for me on the BANANA Pi Single-Board Computer with Ubuntu 14.04.

honzakuzel1989
  • 2,400
  • 2
  • 29
  • 32
6
  1. download CPAN module from this page http://metacpan.org/pod/CPAN

  2. untar it (tar zxf CPAN-2.00.tar.gz), cd into the directory and run

    perl Makefile.PL
    make test
    sudo make install
    

edit: if it breaks making a path with :: in it then perhaps your filesystem type does not support these characters in a filename

To see the filesystem type, run mount without any parameters and all the mounted filesystems with their types will be shown

The error Can't write-open blib/man3/CPAN::Admin.3pm seems to suggest a filesystem problem, but ext4 in rw mode sounds alright. Try this from the CPAN-2.00 directory

perl -e 'open($f,">blib/man3/CPAN::thisisatest") || die $!;'
szabgab
  • 6,202
  • 11
  • 50
  • 64
Vorsprung
  • 32,923
  • 5
  • 39
  • 63
  • Step 1) : OK Step 2) perl Makefile.PL OK make test OK (PASSED) sudo make install (ERROR) Manifying blib/man3/CPAN::Admin.3pm Can't write-open blib/man3/CPAN::Admin.3pm: Invalid argument at /usr/share/perl/5.14/ExtUtils/Command/MM.pm line 141 make: *** [manifypods] Error 22 – TheLazyFox Oct 30 '13 at 09:56
  • Are you running a filesystem that doesn't allow :: in filenames? msdos filesystems do not, for example – Vorsprung Oct 30 '13 at 10:06
  • It's a debian based system (raspbmc) – TheLazyFox Oct 30 '13 at 12:42
  • Even a debian based system may mount dos filesystems. So better check using `df -T` or `mount`. – Slaven Rezic Oct 30 '13 at 14:27
  • I was do this on my usb disk. After CP on root partition Ext4, It's work fine ! – TheLazyFox Oct 30 '13 at 16:34
  • @AlxAlx: Can you tell us what file system the USB disk has? I typically get ones that are FAT. I have to reformat them myself. Knowing your answer will help us nail down your issue for the next guy. :) – brian d foy Apr 22 '14 at 15:02