Perl 安装失败 HTTP::Tiny 版本 5.18.2 和 5.20.1 测试

Perl install failing for HTTP::Tiny testing for versions 5.18.2 and 5.20.1

我正在尝试使用 Perlbrew 在 CENTOS Linux 服务器上安装 Perl。我试过安装 5.16、5.18 的几个版本。和 5.20,但它们似乎都未能通过 HTTP::Tiny:

的相同测试
../cpan/HTTP-Tiny/t/000_load.t .................................... ok
../cpan/HTTP-Tiny/t/001_api.t ..................................... ok
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at t/002_croakage.t line 29.
../cpan/HTTP-Tiny/t/002_croakage.t ................................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at t/003_agent.t line 17.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/003_agent.t ................................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests 
../cpan/HTTP-Tiny/t/010_url.t ..................................... ok
../cpan/HTTP-Tiny/t/020_headers.t ................................. ok
../cpan/HTTP-Tiny/t/030_response.t ................................ ok
../cpan/HTTP-Tiny/t/040_content.t ................................. ok
../cpan/HTTP-Tiny/t/050_chunked_body.t ............................ ok
../cpan/HTTP-Tiny/t/060_http_date.t ............................... ok
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at t/070_cookie_jar.t line 23.
# Looks like your test exited with 255 before it could output anything.
../cpan/HTTP-Tiny/t/070_cookie_jar.t .............................. 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests 
../cpan/HTTP-Tiny/t/100_get.t ..................................... ok
../cpan/HTTP-Tiny/t/101_head.t .................................... ok
../cpan/HTTP-Tiny/t/102_put.t ..................................... ok
../cpan/HTTP-Tiny/t/103_delete.t .................................. ok
../cpan/HTTP-Tiny/t/104_post.t .................................... ok
../cpan/HTTP-Tiny/t/110_mirror.t .................................. ok
../cpan/HTTP-Tiny/t/130_redirect.t ................................ ok
https_proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at t/140_proxy.t line 14.
../cpan/HTTP-Tiny/t/140_proxy.t ................................... 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
http_proxy URL must be in format http[s]://[auth@]<host>:<port>/
 at t/141_no_proxy.t line 13.
../cpan/HTTP-Tiny/t/141_no_proxy.t ................................ 
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
../cpan/HTTP-Tiny/t/150_post_form.t ............................... ok
../cpan/HTTP-Tiny/t/160_cookies.t ................................. ok
../cpan/HTTP-Tiny/t/161_basic_auth.t .............................. ok
../cpan/HTTP-Tiny/t/162_proxy_auth.t .............................. ok
../cpan/HTTP-Tiny/t/170_keepalive.t ............................... ok

Test Summary Report
-------------------
../cpan/HTTP-Tiny/t/002_croakage.t                              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/003_agent.t                                 (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 8 tests but ran 0.
../cpan/HTTP-Tiny/t/070_cookie_jar.t                            (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
../cpan/HTTP-Tiny/t/140_proxy.t                                 (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
../cpan/HTTP-Tiny/t/141_no_proxy.t                              (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=2405, Tests=699314, 794 wallclock secs (70.76 usr 12.81 sys + 437.06 cusr 53.75 csys = 574.38 CPU)
Result: FAIL
make: *** [test_harness] Error 5

我注意到 140_proxy.t 正在尝试使用 http://localhost:8080 作为服务器测试。但是,我们已经在该端口上运行了一个 httpd。 002_croakage.t 甚至不包含任何测试。

所以,

在 8080 上不使用您的服务 运行 试试?我猜这是你失败的唯一原因,但唯一确定的方法就是尝试。

有一些 failing test reports 但与您收到的错误无关,所有错误都与连接到外部服务器有关(google、github、twitter)。

And, why is HTTP::Tiny running tests? It's not a standard Perl module that comes with the installation.

一个标准的 Perl 模块,自 Perl 5.13.9 起就随 Perl 发行版一起提供。