繁体   English   中英

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

[英]Install all perl dependence modules through cpan

我开发了一个perl应用程序,可以在一台服务器上正常工作。 当我运行该应用程序时,我一直将同一应用程序复制到另一台服务器,该应用程序一直在询问perl依赖模块,后来我通过CPAN知道我们可以解决这些依赖关系,但是当我尝试使用CPAN时,它无法下载依赖项perl模块。 我已经将http_porxyconnect_to_internet_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上也应该没有什么不同。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM