【问题标题】:unable to Install Perl module LWP::Protocol::https无法安装 Perl 模块 LWP::Protocol::https
【发布时间】:2017-02-03 16:19:10
【问题描述】:

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

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.

【问题讨论】:

    标签: perl


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2013-10-01
      • 2014-05-30
      • 2015-05-05
      • 2014-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多