如何在 Perl 5.6 上安装 HTML-Parser-3.64?

发布于 2024-08-21 12:29:32 字数 5434 浏览 7 评论 0原文

我正在尝试安装 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 技术交流群。

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

发布评论

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

评论(2

滥情空心 2024-08-28 12:29:32

如果您对其他测试结果感到满意,并且不希望对需要扩展字符集的页面使用 HTML::Parser,那么您可以强制安装。

从命令行:

 $ perl -MCPAN -e 'force install HTML::Parser'

从 CPAN 命令行:

cpan> force install HTML::Parser

从您的构建目录(如果您不想使用 CPAN):

mv t/entities.t t/entities.tt
mv t/uentities.t t/uentities.tt
make install

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:

 $ perl -MCPAN -e 'force install HTML::Parser'

From CPAN command line:

cpan> force install HTML::Parser

From your build directory (if you'd rather not use CPAN):

mv t/entities.t t/entities.tt
mv t/uentities.t t/uentities.tt
make install
静待花开 2024-08-28 12:29:32

您需要将其报告给 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.

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