我試圖安裝一些Perl模塊,但每次顯示此消息如何更新CPAN 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
隨着
[email protected]:~$ 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.
[email protected]:~$
版本仍然是1.960001。從這個頁面http://metacpan.org/pod/CPAN
這看起來像是崩潰。這是一個覆盆子pi嗎?你有足夠的內存來運行CPAN.pm嗎? –
嗨,這是一個覆盆子pi! 我應該使用cpanm嗎? – RaspDealer
加載所有索引後,CPAN shell在我的amd64系統上佔用大約300MB。這對您的系統來說可能太多了。 cpanm可能更好,因爲它不會將索引加載到內存中。 –