【问题标题】:Trying to install HTTP::Server::Brick on Strawberry Perl on Windows 7尝试在 Windows 7 上的 Strawberry Perl 上安装 HTTP::Server::Brick
【发布时间】:2012-07-12 21:50:54
【问题描述】:

这是我在运行 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 位无符号整数范围!我什至无法在任何 URL 栏中输入localhost:85432,Chrome 只是将我直接发送到 Google 搜索。

【问题讨论】:

    标签: windows perl http webserver cpan


    【解决方案1】:

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

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

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

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

    【讨论】:

    猜你喜欢
    • 2021-01-15
    • 2016-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 2017-10-14
    • 2012-07-18
    • 2017-12-16
    相关资源
    最近更新 更多