【发布时间】:2013-11-09 17:36:57
【问题描述】:
我正在尝试安装一些 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。
【问题讨论】:
-
这看起来像一个崩溃。这是树莓派吗?您是否有足够的内存来运行 CPAN.pm?
-
嗨,这是一个树莓派!我应该使用 cpanm 吗?
-
加载所有索引后,CPAN shell 在我的 amd64 系统上占用了大约 300MB。这对您的系统来说可能太多了。 cpanm 可能更好,因为它不会将索引加载到内存中。
-
我可以在我的 16gb sd 卡上创建一个交换吗?
-
对不起,不知道。这只是猜测您的内存不足。你在 /var/log 的日志文件中看到了什么吗?