以下是CPAN的完整安装命令和输出:
sudo perl -MCPAN -e "install Bundle::CPAN" CPAN: Storable loaded ok (v2.13) Going to read /home/delgreco/.cpan/Metadata Database was generated on Mon, 08 Dec 2008 03:27:10 GMT CPAN: LWP::UserAgent loaded ok (v2.033) CPAN: Time::HiRes loaded ok (v1.55) CPAN: YAML loaded ok (v0.39) Warning: YAML version '0.39' is too low, please upgrade! I'll continue but problems are *very* likely to happen. Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/' Could not fetch authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz Giving up on '/home/delgreco/.cpan/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz' Note: Current database in memory was generated on Mon, 08 Dec 2008 03:27:10 GMT ...propagated at /usr/lib/perl5/5.8.5/CPAN.pm line 3417.
这对我有用,谢谢......
cpan> o conf urllist http://cpan.yahoo.com/
当然,Bundle :: CPAN安装在其他依赖项上继续失败,但至少我现在有一个YAML 0.68.
这看起来很重要:
Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'
也许跑sudo cpan
,然后o conf init
或o conf urllist push http://cpan.yahoo.com/
(例如)让你urllist
理顺?然后尝试进行安装.