2

这是我在运行 cpan 安装它时看到的。

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.


cpan> install HTTP::Server::Brick
Database was generated on Fri, 13 Jul 2012 03:26:42 GMT
Running install for module 'HTTP::Server::Brick'
Running make for A/AU/AUFFLICK/HTTP-Server-Brick-0.1.4.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\A\AU\AUFFLICK\HTTP-Server-Bri
ck-0.1.4.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE


  CPAN.pm: Building A/AU/AUFFLICK/HTTP-Server-Brick-0.1.4.tar.gz

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'HTTP-Server-Brick' version '0.1.4'
Building HTTP-Server-Brick
  AUFFLICK/HTTP-Server-Brick-0.1.4.tar.gz
  C:\strawberry\perl\bin\perl.exe ./Build -- OK
Running Build test
t\00.load.t ....... 1/1 # Testing HTTP::Server::Brick v0.1.4
t\00.load.t ....... ok
t\pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD c
overage
t\pod.t ........... skipped: Test::Pod 1.14 required for testing POD
t\serving.t ....... 1/281 #
#
# Using port: 85432 and host: 127.0.0.1 for test server.
# If these are not suitable settings on your machine, set the environment
# variables HSB_TEST_PORT and HSB_TEST_HOST to something suitable.
#
# Configuring server
# Starting server
t\serving.t ....... 4/281

真的很简单……为什么是85432端口?它超出了 16 位无符号整数范围!我什至无法输入localhost:85432任何 URL 栏,Chrome 只是将我直接发送到 Google 搜索。

4

1 回答 1

0

这很奇怪。我查看了相关测试的来源,它有:

my $port = $ENV{HSB_TEST_PORT} || 85432;

不知道作者为什么选择它作为默认端口号,因为您知道它是无效的。不过,我想端口被使用的可能性为零!

我的建议是将环境变量设置HSB_TEST_PORT为更合理的值并尝试再次安装,同时提交错误报告。

于 2012-07-13T07:17:05.753 回答