perl – 如何告诉CPAN.pm哪里可以得到模块?

前端之家收集整理的这篇文章主要介绍了perl – 如何告诉CPAN.pm哪里可以得到模块?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
以下是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
07000

当然,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拉直?然后尝试做你的安装.

猜你在找的Perl相关文章