どのように私は、Perl 5.6でHTMLパーサー-3.64をインストールすることができますか?
-
21-09-2019 - |
質問
私はHTMLパーサー-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 /レポート/ 6653478 に。しかし、そのための任意の返信やソリューションを見ることができませんでした。
解決
あなたが他のテスト結果に慣れている、とあなたが拡張文字セットを必要とするページのため
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
他のヒント
あなたは HTMLに報告する必要があります:: Parserのバグトラッカーに。 Cpantesters結果は、あなたが使用バグトラッカーに必要な著者の注目を得るために、多くの場合、自動レポートのみです。
P.S。アップグレードは、(場合には、あなたがこれを行うのは問題がない)のも良いアイデアです - Perlは5.6.1からの9年間で多くを変更しました。
。所属していません StackOverflow