通过cpan安装所有perl依赖模块

通过cpan安装所有perl依赖模块,perl,Perl,我已经开发了一个perl应用程序,它可以在一台服务器上正常工作。当我运行该应用程序时,我将同一个应用程序复制到了另一台服务器,它一直在询问perl依赖模块,后来我通过CPAN知道我们可以解决这些依赖关系,但当我尝试使用CPAN时,它无法下载依赖perl模块。我已将http\u porxy和connect\u to\u internet\u ok设置为yes,但仍无法安装perl模块 通过CPAN命令提示符运行,出现以下错误: Fetching with LWP: http://cpan.stra

我已经开发了一个perl应用程序,它可以在一台服务器上正常工作。当我运行该应用程序时,我将同一个应用程序复制到了另一台服务器,它一直在询问perl依赖模块,后来我通过CPAN知道我们可以解决这些依赖关系,但当我尝试使用CPAN时,它无法下载依赖perl模块。我已将
http\u porxy
connect\u to\u internet\u ok
设置为
yes
,但仍无法安装perl模块

通过CPAN命令提示符运行,出现以下错误:

Fetching with LWP:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to cpan.strawberryperl.com:80 (10060)]
Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt
.gz.tmp13940'. Giving up on it.

请帮助我们解决这个问题。谢谢。

假设代理是这里的问题。正在为cpan设置代理:

cpan> o conf init /proxy/
Your ftp_proxy? [] ftp://1.1.1.1:3128
Your http_proxy? [] http://1.1.1.1:3128
Your no_proxy? []
cpan> o conf commit
这种设置代理的方法一直对我有效。我在Linux上使用了这些步骤,但我想在windows上也不应该有什么不同