15

我正在尝试安装一些 perl 模块,但每次显示此消息

  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.

我试过做

install CPAN
reload cpan

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

但结果是

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:~$ 

版本仍然是 1.960001。

4

2 回答 2

25

以下程序

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

在带有 Ubuntu 14.04 的 BANANA Pi 单板计算机上为我工作。

于 2015-02-25T07:48:41.670 回答
6
  1. 从此页面下载 CPAN 模块http://metacpan.org/pod/CPAN

  2. 解压它(tar zxf CPAN-2.00.tar.gz),cd进入目录并运行

    perl Makefile.PL
    make test
    sudo make install
    

编辑:如果它破坏了其中包含 :: 的路径,那么您的文件系统类型可能不支持文件名中的这些字符

要查看文件系统类型,mount不带任何参数运行,将显示所有已挂载的文件系统及其类型

该错误Can't write-open blib/man3/CPAN::Admin.3pm似乎表明文件系统有问题,但 rw 模式下的 ext4 听起来不错。从CPAN-2.00目录试试这个

perl -e 'open($f,">blib/man3/CPAN::thisisatest") || die $!;'
于 2013-10-30T09:07:21.123 回答