请教各位大哥,我发愁死了,cpan老失败。。。

请教各位大哥,我发愁死了,cpan老失败。。。

我是初学 要cpan自动安装 但是运行命令出错 请教各位达人谁能帮我一把 在你们可能很简单 我找了好久都没找到答案 我安哪个都是这样。。。。。谢谢啦
perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Warning: Found only 0 objects in /root/.cpan/Metadata
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
   /authors/01mailrc.txt.gz
LWP failed with code[400] message[URL must be absolute]
Please check, if the URLs I found in your configuration file ( ) are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch authors/01mailrc.txt.gz
Fetching with LWP:
   /modules/02packages.details.txt.gz
LWP failed with code[400] message[URL must be absolute]
Please check, if the URLs I found in your configuration file ( ) are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch modules/02packages.details.txt.gz
Fetching with LWP:
   /modules/03modlist.data.gz
LWP failed with code[400] message[URL must be absolute]
Please check, if the URLs I found in your configuration file ( ) are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Warning: Cannot install Bundle::CPAN, don't know what it is.
Try the command

    i /Bundle::CPAN/

to find objects with matching identifiers.

cpan> install Bundle::CPAN
Warning: Cannot install Bundle::CPAN, don't know what it is.
Try the command

    i /Bundle::CPAN/

to find objects with matching identifiers.
我也遇到过这样的问题, cpan设置的时候好像会把空白认为是一个mirror的网址,而且好像你没有其他可选的网址.

找到Config.pm

我的在/usr/lib/perl5/5.8.8/CPAN/Config.pm, 你的不在的话find一下

修改里面的urllist => [q[]], 里的东东,  改成  'urllist' => [q[http://cpan.linuxforum.net/]], 或者别的


或者备份这个文件,删除再重新配置一下cpan估计也可以,  


不知道cpan有没有重新配置的命令行选项了

啊 晕 我想起来了 好像是配置时候有个地址选成空白了 谢谢兄弟 我试试
我那个地址确实是空的。。。。但我还有个小问题
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Warning: Found only 0 objects in /root/.cpan/Metadata

第三行这个warning是什么错误啊 对我下载模块有影响吗
warning这个我知道了 install Bundle::CPAN以后这个警告就没了


QUOTE:
原帖由 天下第一菜 于 2008-3-12 17:19 发表
啊 晕 我想起来了 好像是配置时候有个地址选成空白了 谢谢兄弟 我试试

你说的那个地方选成空白无所谓.
之前你肯定会先选择地区,然后选择一些这个地区的服务器.

我建议你重新用配置一下,在选则位置的时候,选择日本.
然后把日本那几个服务器都选上.