WWW:Mechanize Perl 模块安装错误

发布于 2024-10-14 09:07:01 字数 966 浏览 7 评论 0原文

我正在尝试在我的 XAMMP 服务器上安装 WWW:Mechanize 模块。我已将安装结束时显示的测试结果复制到此处:

Test Summary Report
-------------------
t\local\back.t         (Wstat: 256 Tests: 47 Failed: 1)
  Failed test:  33
  Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
  TODO passed:   15-17, 19
Files=51, Tests=554, 203 wallclock secs ( 0.51 usr +  0.11 sys =  0.62 CPU)
Result: FAIL
Failed 1/51 test programs. 1/554 subtests failed.
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0xff'
Stop.
  PETDANCE/WWW-Mechanize-1.66.tar.gz
  nmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PETDANCE/WWW-Mechanize-1.66.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 PETDANCE/WWW-Mechanize-1.66.tar.gz           : make_test NO

谁能告诉我为什么有这么多错误,并且尽管存在这些错误,仍然安装了 WWW:Mechanize 吗?

I am attempting to install the WWW:Mechanize module on my XAMMP server. I have copied the test results that were displayed at the end of the install here:

Test Summary Report
-------------------
t\local\back.t         (Wstat: 256 Tests: 47 Failed: 1)
  Failed test:  33
  Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
  TODO passed:   15-17, 19
Files=51, Tests=554, 203 wallclock secs ( 0.51 usr +  0.11 sys =  0.62 CPU)
Result: FAIL
Failed 1/51 test programs. 1/554 subtests failed.
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0xff'
Stop.
  PETDANCE/WWW-Mechanize-1.66.tar.gz
  nmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PETDANCE/WWW-Mechanize-1.66.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 PETDANCE/WWW-Mechanize-1.66.tar.gz           : make_test NO

Can anyone tell me why there are so many errors, and has WWW:Mechanize installed in spite of these errors?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

长伴 2024-10-21 09:07:01

t/local/back.t 中的测试 33(无论如何在 WWW::Mechanize 1.66 中)似乎是在本地环回 HTTP 服务器上测试 404,该服务器仅为测试而创建。它显然收到了与测试预期不同的消息。

我想说你可以安装它并忽略该测试,因为其他 553 似乎已经成功。您可以通过下载 WWW::Mechanize (或转到到您的 CPAN 构建目录(如果您知道它在哪里),然后运行

perl Makefile.PL
make
make test        # just try it again, it might have been transient
make install

您可能还希望访问 WWW::Mechanize bug tracker 并将其报告为 bug(如果它仍然存在);那就太好了。


编辑有关此问题的更多信息,请参见错误跟踪器,所以显然不需要报告它。不过还没有修复。

Test 33 in t/local/back.t (in WWW::Mechanize 1.66 anyway) appears to test for 404s on a local loopback HTTP server, created just for testing. It apparently received a different message than expected for the test.

I'd say you'd be fine installing it and ignoring that one test, since the other 553 seem to have succeeded. You can do it by hand by downloading WWW::Mechanize (or going to your CPAN build directory if you know where it is), and running

perl Makefile.PL
make
make test        # just try it again, it might have been transient
make install

You may also wish to visit the WWW::Mechanize bug tracker and report this as a bug, if it persists; it would be nice.


EDIT: More on this issue in the bug tracker, so apparently no need to report it. No fix yet, though.

合约呢 2024-10-21 09:07:01

前段时间我分析过这个失败。至少对我来说,这似乎不是 WWW::Mechanize 的错误。

看一下:

1/我的 LWP (HTTP::Daemon) 错误报告 - https://rt.cpan.org/Public/Bug/Display.html?id=62354

2/ 我的 Socket (gethostbyaddr) 错误报告 - http://rt.perl.org/rt3/Ticket/Display.html?id=78364

--
kmx

​抱歉,只能发布 1 个链接

Some time ago I have analyzed this failure. At least to me it does not seem to be a WWW::Mechanize's bug.

Have a look at:

1/ my LWP (HTTP::Daemon) bug report - https://rt.cpan.org/Public/Bug/Display.html?id=62354

2/ my Socket (gethostbyaddr) bug report - http://rt.perl.org/rt3/Ticket/Display.html?id=78364

--
kmx

P.S. sorry can post just 1 link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文