HTTP::Server::Simple 无法安装
考试失败了,不知道怎么解决。
# Failed test 'Environment - REMOTE_ADDR'
# at t/04cgi.t line 64.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 27
#
# REMOTE_ADDR: 17x.x.x.x'
# doesn't match '/REMOTE_ADDR: 127.0.0.1/'
t/04cgi.t .......... 19/23 # Looks like you failed 1 test of 23.
t/04cgi.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/23 subtests
显然环境变量设置为VPS的主机ip;不是127.0.0.1?
Fails a test, don't know how to get around it.
# Failed test 'Environment - REMOTE_ADDR'
# at t/04cgi.t line 64.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 27
#
# REMOTE_ADDR: 17x.x.x.x'
# doesn't match '/REMOTE_ADDR: 127.0.0.1/'
t/04cgi.t .......... 19/23 # Looks like you failed 1 test of 23.
t/04cgi.t .......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/23 subtests
Apparently an environmental variable is set to the VPS's host ip; not 127.0.0.1?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
强制
安装步骤。要找出测试失败的原因,请单步执行调试器。有趣的部分是
HTTP::Server::Simple::lookup_localhost
。也许您的/etc/hosts
文件已被冻结。force
the install step.To find out why the test fails, step through the debugger. The interesting part is
HTTP::Server::Simple::lookup_localhost
. Perhaps your/etc/hosts
file is frobnitzed.