当前位置:  开发笔记 > 编程语言 > 正文

我如何告诉CPAN.pm在哪里获取模块?

如何解决《我如何告诉CPAN.pm在哪里获取模块?》经验,为你挑选了1个好方法。

以下是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.



1> oeuftete..:

这看起来很重要:

Your urllist is empty! The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

也许跑sudo cpan,然后o conf inito conf urllist push http://cpan.yahoo.com/(例如)让你urllist理顺?然后尝试进行安装.

推荐阅读
手机用户2402851155
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有