我正在尝试安装 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); $详细=0;runtests @ARGV;\' t/*.t\nt/api_version........ok \nt/argspec-bad........ok \nt/argspec....... .....ok \nt/argspec2...........ok \nt/attr-encoded.......ok \nt/callback........................ .ok \nt/区分大小写......ok \nt/cases............ok \nt/comment............ok \nt/crashme…………ok \nt/声明……ok \nt/default…………ok \nt/文档............ok \nt/dtext............ok \nt/entities............ok 1/ 17 \nt/entities...........NOK 17# 测试失败(t/entities.t 第 74 行)\n# 得到:\'Attention Homeοωnשrs...1ѕt Tімe Eνשг\'\n #预期:\'注意首页\xc3\x8e\xc2\xbf\xc3\x8fn\xc3\x93\xc2\xa9rs...1\xc3\x91t T\xc3\x91\xc3\x90\xc2\xbce E\ xc3\x8e\xc2\xbd\xc3\x93\xc2\xa9\xc3\x90\xc2\xb3\'\n# 看起来您未通过 17 项测试中的 1 项。\nt/entities......... ..可疑\n测试返回状态1(wstat 256,0x100)\n死亡。失败测试 17\n 失败 1/17 测试,94.12% 好\nt/entities2.........ok \nt/filter-methods.....ok \nt/filter..... ........ok \nt/handler-eof........ok \nt/handler............ok \nt/headparser-http... .ok \nt/headparser.........ok \n 4/15 已跳过:需要 Unicode 支持\nt/ignore.....ok \nt/largetags.. ........ok \nt/linkextor-base.....ok \nt/linkextor-rel......ok \nt/magic............ ..ok \nt/marked-sect........ 确定\nt/msie-compat........确定\nt/offset...........确定\nt/options............好的\nt/parsefile....... 好的\nt/parser....... 好的\nt/plaintext....... 好的\ nt/pod......跳过\n全部跳过:测试POD需要Test::Pod 1.00\nt/process............好的 \nt/pullparser......... 好的 \nt/script........... 好的 \nt/skipped-text....... 好的 \nt/ stack-realloc......ok \nt/textarea............ok \nt/threads............跳过\n全部跳过:未配置对于线程\nt/tokeparser.........ok \nt/uentities.........ok 1/26# 看起来您计划了 26 个测试,但额外运行了 1 个。\nt/uentities ......可疑\n测试返回状态1(wstat 256,0x100)\n死亡。FAILED test 27\n 失败 1/26 次测试,96.15% 正常(少 27 次跳过测试:-2 正常,-7.69%)\nt/unbroken-text......ok \nt/unicode-bom... .....ok \n 2/2 已跳过:此 Perl 不支持 Unicode\nt/unicode............已跳过\n 全部已跳过:此 Perl 不支持 Unicode\nt/ xml-mode...........ok \n失败测试统计 Wstat 失败总数 失败失败列表\n------------------------ -------------------------------------------------- --------\nt/entities.t 1 256 17 1 5.88% 17\nt/uentities.t 1 256 26 1 3.85% 27\n跳过 3 个测试和 33 个子测试。\n失败的 2/48 个测试脚本,95.83 % 好的。0/338 子测试失败,100.00% 正常。\n*** 错误代码 11\nmake:致命错误:目标“test_dynamic\”命令失败\n 好的 \nt/pullparser......... 好的 \nt/script........... 好的 \nt/skipped-text....... 好的 \nt/ stack-realloc......ok \nt/textarea............ok \nt/threads............跳过\n全部跳过:未配置对于线程\nt/tokeparser.........ok \nt/uentities.........ok 1/26# 看起来您计划了 26 个测试,但额外运行了 1 个。\nt/uentities ......可疑\n测试返回状态1(wstat 256,0x100)\n死亡。FAILED test 27\n 失败 1/26 次测试,96.15% 正常(少 27 次跳过测试:-2 正常,-7.69%)\nt/unbroken-text......ok \nt/unicode-bom... .....ok \n 2/2 已跳过:此 Perl 不支持 Unicode\nt/unicode............已跳过\n 全部已跳过:此 Perl 不支持 Unicode\nt/ xml-mode...........ok \n失败测试统计 Wstat 失败总数 失败失败列表\n------------------------ -------------------------------------------------- --------\nt/entities.t 1 256 17 1 5.88% 17\nt/uentities.t 1 256 26 1 3.85% 27\n跳过了 3 个测试和 33 个子测试。\n失败的 2/48 个测试脚本,95.83 % 好的。0/338 子测试失败,100.00% 正常。\n*** 错误代码 11\nmake:致命错误:目标“test_dynamic\”命令失败\n 好的 \nt/pullparser......... 好的 \nt/script........... 好的 \nt/skipped-text....... 好的 \nt/ stack-realloc......ok \nt/textarea............ok \nt/threads............跳过\n全部跳过:未配置对于线程\nt/tokeparser.........ok \nt/uentities.........ok 1/26# 看起来您计划了 26 个测试,但额外运行了 1 个。\nt/uentities ......可疑\n测试返回状态1(wstat 256,0x100)\n死亡。FAILED test 27\n 失败 1/26 次测试,96.15% 正常(少 27 次跳过测试:-2 正常,-7.69%)\nt/unbroken-text......ok \nt/unicode-bom... .....ok \n 2/2 已跳过:此 Perl 不支持 Unicode\nt/unicode............已跳过\n 全部已跳过:此 Perl 不支持 Unicode\nt/ xml-mode...........ok \n失败测试统计 Wstat 失败总数 失败失败列表\n------------------------ -------------------------------------------------- --------\nt/entities.t 1 256 17 1 5.88% 17\nt/uentities.t 1 256 26 1 3.85% 27\n跳过了 3 个测试和 33 个子测试。\n失败的 2/48 个测试脚本,95.83 % 好的。0/338 子测试失败,100.00% 正常。\n*** 错误代码 11\nmake:致命错误:目标“test_dynamic\”命令失败\n 确定 \n失败测试统计 Wstat 失败总数 失败失败列表\n------------------------------------ -------------------------------------------\nt/entities.t 1 256 17 1 5.88% 17\nt/uentities.t 1 256 26 1 3.85% 27\n3 个测试和 33 个子测试被跳过。\n2/48 个测试脚本失败,95.83% 正常。0/338 子测试失败,100.00% 正常。\n*** 错误代码 11\nmake:致命错误:目标“test_dynamic\”命令失败\n 确定 \n失败测试统计 Wstat 失败总数 失败失败列表\n------------------------------------ -------------------------------------------\nt/entities.t 1 256 17 1 5.88% 17\nt/uentities.t 1 256 26 1 3.85% 27\n3 个测试和 33 个子测试被跳过。\n2/48 个测试脚本失败,95.83% 正常。0/338 子测试失败,100.00% 正常。\n*** 错误代码 11\nmake:致命错误:目标“test_dynamic\”命令失败\n\n\n
我有 Perl 版本 5.6.1。Solaris 8 上的解析器 3.64 版本。\n我在互联网上看到了另一个人报告的类似错误:http://www.cpantesters.org/cpan/report/6653478。但看不到任何回复或解决方案。
\n如果您对其他测试结果感到满意,并且不希望用于HTML::Parser需要扩展字符集的页面,那么您可以强制安装。
从命令行:
$ perl -MCPAN -e 'force install HTML::Parser'
Run Code Online (Sandbox Code Playgroud)
从 CPAN 命令行:
cpan> force install HTML::Parser
Run Code Online (Sandbox Code Playgroud)
从您的构建目录(如果您不想使用CPAN):
mv t/entities.t t/entities.tt
mv t/uentities.t t/uentities.tt
make install
Run Code Online (Sandbox Code Playgroud)