所有CPAN镜像都不能在CPAN配置中工作吗? [英] All CPAN mirrors are not working in CPAN configuration?

查看:137
本文介绍了所有CPAN镜像都不能在CPAN配置中工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装CPAN并在Centos 6上对其进行配置.

I am trying to install CPAN and configure it on Centos 6.

我在配置中收到此消息:

I am getting this message in configuration:

CPAN.pm需要配置,但是大多数可以完成自动地.如果您在下面回答否",则将输入一个交互式对话框,而不是每个配置选项.你是否想要尽可能自动配置?[是]

CPAN.pm requires configuration, but most of it can be done automatically. If you answer 'no' below, you will enter an interactive dialog for each configuration option instead. Would you like to configure as much as possible automatically? [yes]

我选择是,然后提示此消息:

I chose yes, then I am prompted with this message:

自动配置了除"URL列表"以外的所有内容.现在您需要选择您的CPAN镜像站点.你可以让我为你挑选镜子,你可以从列表中选择它们,或者您可以手动输入它们.你要不要我可以自动为您选择一些CPAN镜像站点吗?(这表示连接到互联网)[是]

Autoconfigured everything but 'urllist'. Now you need to choose your CPAN mirror sites. You can let me pick mirrors for you, you can select them from a list or you can enter them by hand. Would you like me to automatically choose some CPAN mirror sites for you? (This means connecting to the Internet) [yes]

我也选择是,以得到该消息:

I also chose yes to get that message:

尝试从Internet上获取镜像列表使用LWP进行获取: http://www.perl.org/CPAN/MIRRORED.BY 使用LWP获取: http://www.perl.org/CPAN/MIRRORED.BY.gz 使用LWP获取: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY 使用LWP获取: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz通过Net :: FTP获取: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY 无法连接到主机使用Net :: FTP的"ftp.perl.org".使用Net :: FTP进行抓取 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz无法连接到主机带有Net :: FTP的'ftp.perl.org'

Trying to fetch a mirror list from the Internet Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Could not connect to host 'ftp.perl.org' with Net::FTP Fetching with Net::FTP ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Could not connect to host 'ftp.perl.org' with Net::FTP

尝试/usr/bin/wget -O"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"来获取 http://www.perl.org/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- http://www.perl.org/CPAN/MIRRORED.BY 解析www.perl.org ... 108.161.188.196连接到www.perl.org | 108.161.188.196 |:80 ...失败:主机没有路由.

Trying with /usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" to get http://www.perl.org/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- http://www.perl.org/CPAN/MIRRORED.BY Resolving www.perl.org... 108.161.188.196 Connecting to www.perl.org|108.161.188.196|:80... failed: No route to host.

Function system("/usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"

" http://www.perl.org/CPAN/MIRRORED.BY ")返回状态4(wstat 1024),左侧/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459,大小为0

"http://www.perl.org/CPAN/MIRRORED.BY" ") returned status 4 (wstat 1024), left /home/abashir/.cpan/sources/MIRRORED.BY.tmp33459 with size 0

尝试/usr/bin/wget -O"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"来获取 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY =>"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"正在解析ftp.perl.org ... 130.161.131.20,131.211.32.146连接到ftp.perl.org | 130.161.131.20 |:21 ...失败:没有路由到主机.连接到ftp.perl.org | 131.211.32.146 |:21 ...失败:无路由主机.

Trying with /usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY => "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" Resolving ftp.perl.org... 130.161.131.20, 131.211.32.146 Connecting to ftp.perl.org|130.161.131.20|:21... failed: No route to host. Connecting to ftp.perl.org|131.211.32.146|:21... failed: No route to host.

Function system("/usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"

" ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY")返回状态4(wstat 1024),左侧为/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459,大小为0警告:无法成功下载"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459".放弃它.没有可用的外部ftp命令

"ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY" ") returned status 4 (wstat 1024), left /home/abashir/.cpan/sources/MIRRORED.BY.tmp33459 with size 0 Warning: no success downloading '/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459'. Giving up on it. No external ftp command available

使用LWP获取: http://www.perl.org/CPAN/MIRRORED.BY 使用LWP: http://www.perl.org/CPAN/MIRRORED.BY.gz

Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY Fetching with LWP: http://www.perl.org/CPAN/MIRRORED.BY.gz

尝试/usr/bin/wget -O"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"来获取 http://www.perl.org/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- http://www.perl.org/CPAN/MIRRORED.BY 解析www.perl.org ... 108.161.188.196连接到www.perl.org | 108.161.188.196 |:80 ...失败:主机没有路由.

Trying with /usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" to get http://www.perl.org/CPAN/MIRRORED.BY --2015-05-25 16:39:15-- http://www.perl.org/CPAN/MIRRORED.BY Resolving www.perl.org... 108.161.188.196 Connecting to www.perl.org|108.161.188.196|:80... failed: No route to host.

Function system("/usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"

" http://www.perl.org/CPAN/MIRRORED.BY ")返回状态4(wstat 1024),左侧为/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459,大小为0警告:无法成功下载"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459".放弃它.使用LWP获取: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY提取使用LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz 使用网路:: FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY 无法连接Net :: FTP托管"ftp.perl.org"并通过Net :: FTP进行抓取 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz无法连接到主机带有Net :: FTP的'ftp.perl.org'

"http://www.perl.org/CPAN/MIRRORED.BY" ") returned status 4 (wstat 1024), left /home/abashir/.cpan/sources/MIRRORED.BY.tmp33459 with size 0 Warning: no success downloading '/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459'. Giving up on it. Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY Could not connect to host 'ftp.perl.org' with Net::FTP Fetching with Net::FTP ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY.gz Could not connect to host 'ftp.perl.org' with Net::FTP

尝试/usr/bin/wget -O"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"来获取 ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY --2015-05-25 16:39:17-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY =>"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"正在解析ftp.perl.org ... 131.211.32.146,130.161.131.20连接到ftp.perl.org | 131.211.32.146 |:21 ...失败:没有路由到主机.连接到ftp.perl.org | 130.161.131.20 |:21 ...失败:无路由主机.

Trying with /usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" to get ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY --2015-05-25 16:39:17-- ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY => "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459" Resolving ftp.perl.org... 131.211.32.146, 130.161.131.20 Connecting to ftp.perl.org|131.211.32.146|:21... failed: No route to host. Connecting to ftp.perl.org|130.161.131.20|:21... failed: No route to host.

Function system("/usr/bin/wget -O "/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459"

" ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY")返回状态4(wstat 1024),左侧为/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459,大小为0警告:无法成功下载"/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459".放弃它.没有可用的外部ftp命令

"ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY" ") returned status 4 (wstat 1024), left /home/abashir/.cpan/sources/MIRRORED.BY.tmp33459 with size 0 Warning: no success downloading '/home/abashir/.cpan/sources/MIRRORED.BY.tmp33459'. Giving up on it. No external ftp command available

您的网址列表为空!网址列表可以编辑.例如.与'o confurllist push ftp://myurl/'

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

无法获取MIRRORED.BY,我们无法获取镜像列表的副本来自网络.您需要自己提供CPAN镜像URL.

Could not fetch MIRRORED.BY We failed to get a copy of the mirror list from the Internet. You will need to provide CPAN mirror URLs yourself.

现在,您可以手动输入自己的CPAN URL.本地CPAN镜像可以可以使用"file:"网址列出,例如"file:///path/to/cpan/"

Now you can enter your own CPAN URLs by hand. A local CPAN mirror can be listed using a 'file:' URL like 'file:///path/to/cpan/'

CPAN.pm需要至少一个URL,可以从中获取CPAN文件.

CPAN.pm needs at least one URL where it can fetch CPAN files from.

请输入您的CPAN网站:[]

Please enter your CPAN site: []

然后,我在 perlmodlib 中检查了要在荷兰(我居住的地方)的镜像列表,然后我一次一个地输入它们,并按如下所示终止配置.

Then I checked the list of mirrors to in perlmodlib for netherlands(where I live), and I entered them one by one, and configuration was terminated as follows.

请输入您的CPAN网站:[] ftp://ftp.quicknet.nl/pub/CPAN/输入另一个要退出的URL或ENTER:[] http://mirror.hostfuss.com/CPAN/输入另一个URL或ENTER退出:[] ftp://mirror.hostfuss.com/CPAN/输入另一个URL或ENTER退出:[] http://mirrors3.kernel.org/cpan/输入另一个URL或ENTER退出:[] ftp://mirrors3.kernel.org/pub/CPAN/输入另一个URL或进入到退出:[] http://cpan.mirror.versatel.nl/输入另一个URL或ENTER输入退出:[] ftp://ftp.mirror.versatel.nl/cpan/输入另一个URL或ENTER要退出:[] ftp://download.xs4all.nl/pub/mirror/CPAN/输入另一个要退出的URL或ENTER:[] http://mirror.leaseweb.com/CPAN/输入另一个要退出的URL或ENTER:[] ftp://mirror.leaseweb.com/CPAN/输入另一个要退出的URL或ENTER:[] ftp://ftp.cpan.nl/pub/CPAN/输入另一个要退出的URL或ENTER:[] http://archive.cs.uu.nl/mirror/CPAN/输入另一个URL或ENTER退出:[] ftp://ftp.cs.uu.nl/镜像/CPAN/输入另一个URL或ENTER退出:[] http://luxitude.net/cpan/输入另一个URL或ENTER退出:[]

Please enter your CPAN site: [] ftp://ftp.quicknet.nl/pub/CPAN/ Enter another URL or ENTER to quit: [] http://mirror.hostfuss.com/CPAN/ Enter another URL or ENTER to quit: [] ftp://mirror.hostfuss.com/CPAN/ Enter another URL or ENTER to quit: [] http://mirrors3.kernel.org/cpan/ Enter another URL or ENTER to quit: [] ftp://mirrors3.kernel.org/pub/CPAN/ Enter another URL or ENTER to quit: [] http://cpan.mirror.versatel.nl/ Enter another URL or ENTER to quit: [] ftp://ftp.mirror.versatel.nl/cpan/ Enter another URL or ENTER to quit: [] ftp://download.xs4all.nl/pub/mirror/CPAN/ Enter another URL or ENTER to quit: [] http://mirror.leaseweb.com/CPAN/ Enter another URL or ENTER to quit: [] ftp://mirror.leaseweb.com/CPAN/ Enter another URL or ENTER to quit: [] ftp://ftp.cpan.nl/pub/CPAN/ Enter another URL or ENTER to quit: [] http://archive.cs.uu.nl/mirror/CPAN/ Enter another URL or ENTER to quit: [] ftp://ftp.cs.uu.nl/mirror/CPAN/ Enter another URL or ENTER to quit: [] http://luxitude.net/cpan/ Enter another URL or ENTER to quit: []

新网址列表
ftp://ftp.quicknet.nl/pub/CPAN/ ftp://mirror.hostfuss.com/CPAN/ ftp://mirrors3.kernel.org/pub/CPAN/ ftp://ftp.mirror.versatel.nl/cpan/
ftp://download.xs4all.nl/pub/mirror/CPAN/
http://mirror.leaseweb.com/CPAN/ ftp://ftp.cpan.nl/pub/CPAN/ ftp://ftp.cs.uu.nl/mirror/CPAN/ http://luxitude.net/cpan/

New urllist
ftp://ftp.quicknet.nl/pub/CPAN/ http://mirror.hostfuss.com/CPAN/
ftp://mirror.hostfuss.com/CPAN/ http://mirrors3.kernel.org/cpan/
ftp://mirrors3.kernel.org/pub/CPAN/ http://cpan.mirror.versatel.nl/ ftp://ftp.mirror.versatel.nl/cpan/
ftp://download.xs4all.nl/pub/mirror/CPAN/
http://mirror.leaseweb.com/CPAN/ ftp://mirror.leaseweb.com/CPAN/
ftp://ftp.cpan.nl/pub/CPAN/ http://archive.cs.uu.nl/mirror/CPAN/
ftp://ftp.cs.uu.nl/mirror/CPAN/ http://luxitude.net/cpan/

自动配置完成.

提交:写了'/home/abashir/.cpan/CPAN/MyConfig.pm'

commit: wrote '/home/abashir/.cpan/CPAN/MyConfig.pm'

您可以随时使用CPAN中的'o conf init'重新运行配置壳

You can re-run configuration any time with 'o conf init' in the CPAN shell

现在,每当我尝试安装任何模块时,都会出现错误,例如尝试安装 XML::简单,在试用期结束时,我得到以下信息:

Now, whenever I try to install any module, i get errors, for example trying to install XML::Simple, I get the following at the end of trials:

请检查我在您的配置文件中是否找到了URL( ftp://ftp.quicknet.nl/pub/CPAN/ http://mirror.hostfuss.com/CPAN/ ftp://mirror.hostfuss.com/CPAN/ ftp://mirrors3.kernel.org/pub/CPAN/ ftp://ftp.mirror.versatel.nl/cpan/ ftp://download.xs4all.nl/pub/mirror/CPAN/ http://mirror.leaseweb.com/CPAN/ ftp://ftp.cpan.nl/pub/CPAN/ ftp://ftp.cs.uu.nl/mirror/CPAN/ http://luxitude.net/cpan/)有效.网址列表可以编辑.例如.与'o conf urllist push ftp://myurl/'

Please check, if the URLs I found in your configuration file (ftp://ftp.quicknet.nl/pub/CPAN/, http://mirror.hostfuss.com/CPAN/, ftp://mirror.hostfuss.com/CPAN/, http://mirrors3.kernel.org/cpan/, ftp://mirrors3.kernel.org/pub/CPAN/, http://cpan.mirror.versatel.nl/, ftp://ftp.mirror.versatel.nl/cpan/, ftp://download.xs4all.nl/pub/mirror/CPAN/, http://mirror.leaseweb.com/CPAN/, ftp://mirror.leaseweb.com/CPAN/, ftp://ftp.cpan.nl/pub/CPAN/, http://archive.cs.uu.nl/mirror/CPAN/, ftp://ftp.cs.uu.nl/mirror/CPAN/, http://luxitude.net/cpan/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

无法获取authors/01mailrc.txt.gz锁定文件已删除.

Could not fetch authors/01mailrc.txt.gz Lockfile removed.

您可以检查最后一步完整日志./z6FP"rel =" nofollow>此处

You can check the Full log of the final step here

我该如何解决?

推荐答案

您似乎在代理后面.您必须在CPAN Shell中配置代理:

You seem to be behind a proxy. You have to configure the proxy in CPAN shell:

o conf http_proxy 'http://user:password@proxy.com'

这篇关于所有CPAN镜像都不能在CPAN配置中工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆