首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法安装Perl模块LWP::Protocol::https

无法安装Perl模块LWP::Protocol::https
EN

Stack Overflow用户
提问于 2017-02-03 08:05:05
回答 1查看 1.1K关注 0票数 0

我正在尝试使用命令"sudo -e shell“安装perl包LWP::UserAgent;但是它给出了以下错误

代码语言:javascript
运行
复制
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp4331'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
Fetching with LWP:
  http://www.perl.org/CPAN/autho`rs/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to www.perl.org:80 (connect: No route to host)]

Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
    "http://www.perl.org/CPAN/authors/01mailrc.txt.gz"
curl: (7) couldn't connect to host


Resolving ftp.perl.org... 204.157.3.70, 209.221.142.115
Connecting to ftp.perl.org|204.157.3.70|:21... failed: No route to host.
Connecting to ftp.perl.org|209.221.142.115|:21... failed: No route to host.


    Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp4331'. Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
No external ftp command available

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

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

Could not fetch authors/01mailrc.txt.gz
Terminal does not support GetHistory.
Lockfile removed.
EN

回答 1

Stack Overflow用户

发布于 2017-02-03 08:19:10

无法连接到www.perl.org:80

看来您的系统无法连接到提供软件的服务器。您要么离线,被防火墙阻止,要么需要配置代理才能到达internet。这应该会影响系统上的任何工具,而不仅仅是cpan。注意,当您使用sudo时,您在shell中可能拥有的任何代理设置都不会传播到perl/cpan。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42019492

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档