如何在 Perl 5.6 上安装 HTML-Parser-3.64?
我正在尝试安装 HTML-Parser-3.64,并且在运行 make test
时收到以下报告:
ERL_DL_NONLAZY=1 /home/Perl/bin/perl -Iblib/arch -Iblib/lib -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1/sun4.SVR4 -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/api_version........ok t/argspec-bad........ok t/argspec............ok t/argspec2...........ok t/attr-encoded.......ok t/callback...........ok t/case-sensitive.....ok t/cases..............ok t/comment............ok t/crashme............ok t/declaration........ok t/default............ok t/document...........ok t/dtext..............ok t/entities...........ok 1/17 t/entities...........NOK 17# Failed test (t/entities.t at line 74) # got: 'Attention Homeοωnөrs...1ѕt Tімe Eνөг' # expected: 'Attention HomeοÏnÓ©rs...1Ñt TÑмe Eνөг' # Looks like you failed 1 test of 17. t/entities...........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 17 Failed 1/17 tests, 94.12% okay t/entities2..........ok t/filter-methods.....ok t/filter.............ok t/handler-eof........ok t/handler............ok t/headparser-http....ok t/headparser.........ok 4/15 skipped: Need Unicode support t/ignore.............ok t/largetags..........ok t/linkextor-base.....ok t/linkextor-rel......ok t/magic..............ok t/marked-sect........ok t/msie-compat........ok t/offset.............ok t/options............ok t/parsefile..........ok t/parser.............ok t/plaintext..........ok t/pod................skipped all skipped: Test::Pod 1.00 required for testing POD t/process............ok t/pullparser.........ok t/script.............ok t/skipped-text.......ok t/stack-realloc......ok t/textarea...........ok t/threads............skipped all skipped: Not configured for threads t/tokeparser.........ok t/uentities..........ok 1/26# Looks like you planned 26 tests but ran 1 extra. t/uentities..........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 27 Failed 1/26 tests, 96.15% okay (less 27 skipped tests: -2 okay, -7.69%) t/unbroken-text......ok t/unicode-bom........ok 2/2 skipped: This perl does not support Unicode t/unicode............skipped all skipped: This perl does not support Unicode t/xml-mode...........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/entities.t 1 256 17 1 5.88% 17 t/uentities.t 1 256 26 1 3.85% 27 3 tests and 33 subtests skipped. Failed 2/48 test scripts, 95.83% okay. 0/338 subtests failed, 100.00% okay. *** Error code 11 make: Fatal error: Command failed for target `test_dynamic'
我有 Perl 版本 5.6.1。 Solaris 8 上的解析器 3.64 版本。 我在互联网上看到了另一个人报告的类似错误 http://www.cpantesters.org /cpan/report/6653478。但看不到任何回复或解决方案。
I am trying to install HTML-Parser-3.64 and I get following report while running make test
:
ERL_DL_NONLAZY=1 /home/Perl/bin/perl -Iblib/arch -Iblib/lib -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1/sun4.SVR4 -I/home/Perl/5.6.1-nothread/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/api_version........ok t/argspec-bad........ok t/argspec............ok t/argspec2...........ok t/attr-encoded.......ok t/callback...........ok t/case-sensitive.....ok t/cases..............ok t/comment............ok t/crashme............ok t/declaration........ok t/default............ok t/document...........ok t/dtext..............ok t/entities...........ok 1/17 t/entities...........NOK 17# Failed test (t/entities.t at line 74) # got: 'Attention Homeοωnөrs...1ѕt Tімe Eνөг' # expected: 'Attention HomeοÏnÓ©rs...1Ñt TÑмe Eνөг' # Looks like you failed 1 test of 17. t/entities...........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 17 Failed 1/17 tests, 94.12% okay t/entities2..........ok t/filter-methods.....ok t/filter.............ok t/handler-eof........ok t/handler............ok t/headparser-http....ok t/headparser.........ok 4/15 skipped: Need Unicode support t/ignore.............ok t/largetags..........ok t/linkextor-base.....ok t/linkextor-rel......ok t/magic..............ok t/marked-sect........ok t/msie-compat........ok t/offset.............ok t/options............ok t/parsefile..........ok t/parser.............ok t/plaintext..........ok t/pod................skipped all skipped: Test::Pod 1.00 required for testing POD t/process............ok t/pullparser.........ok t/script.............ok t/skipped-text.......ok t/stack-realloc......ok t/textarea...........ok t/threads............skipped all skipped: Not configured for threads t/tokeparser.........ok t/uentities..........ok 1/26# Looks like you planned 26 tests but ran 1 extra. t/uentities..........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 27 Failed 1/26 tests, 96.15% okay (less 27 skipped tests: -2 okay, -7.69%) t/unbroken-text......ok t/unicode-bom........ok 2/2 skipped: This perl does not support Unicode t/unicode............skipped all skipped: This perl does not support Unicode t/xml-mode...........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/entities.t 1 256 17 1 5.88% 17 t/uentities.t 1 256 26 1 3.85% 27 3 tests and 33 subtests skipped. Failed 2/48 test scripts, 95.83% okay. 0/338 subtests failed, 100.00% okay. *** Error code 11 make: Fatal error: Command failed for target `test_dynamic'
I have Perl version 5.6.1. and 3.64 version of Parser on Solaris 8.
I have seen following similar error reported by another person on internet at http://www.cpantesters.org/cpan/report/6653478. But could not see any reply or solution for that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您对其他测试结果感到满意,并且不希望对需要扩展字符集的页面使用
HTML::Parser
,那么您可以强制安装。从命令行:
从 CPAN 命令行:
从您的构建目录(如果您不想使用
CPAN
):If you are comfortable with the other test results, and you don't expect to use
HTML::Parser
for pages which require extended character sets, then you can force an install.From command-line:
From CPAN command line:
From your build directory (if you'd rather not use
CPAN
):您需要将其报告给 HTML::Parser bug tracker。 Cpantesters 结果只是报告,在许多情况下是自动的,因此为了引起作者的注意,您需要使用错误跟踪器。
PS 升级也是一个好主意(如果你这样做没有问题的话) - Perl 从 5.6.1 开始 9 年里已经发生了很大的变化。
You need to report it to HTML::Parser bug tracker. Cpantesters results are only reports, in many cases automatic, so to gain attention of author you need to use bug tracker.
P.S. Upgrading is also a good idea (in case you have no problems of doing this) - Perl has changed much in 9 years from 5.6.1.