----
CPANで install Text::MeCab を実行したら以下のように「テストで失敗」とのことでインストールができない。
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/*/*.t t/01-sanity.t ................ 1/42 Bareword "MECAB_NOR_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 11.
Bareword "MECAB_UNK_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 12.
Bareword "MECAB_BOS_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 13.
Bareword "MECAB_EOS_NODE" not allowed while "strict subs" in use at t/01-sanity.t line 14.
Execution of t/01-sanity.t aborted due to compilation errors.
# Looks like you planned 42 tests but ran 1.
# Looks like your test exited with 255 just after 1.
t/01-sanity.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 41/42 subtests
t/node/01_load.t ............. ok
t/node/02_api.t .............. ok
t/node/03_clone.t ............ ok
t/node/04_clone_free.t ....... ok
t/node/05_format.t ........... ok
t/regression/01_tomi_args.t .. skipped: SWIG MeCab not available
t/tagger/01_load.t ........... ok
t/tagger/02_api.t ............ ok
t/tagger/03_basic.t .......... ok
Test Summary Report
-------------------
t/01-sanity.t (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 42 tests but ran 1.
Files=10, Tests=2336, 1 wallclock secs ( 0.42 usr 0.05 sys + 0.73 cusr 0.11 csys = 1.31 CPU)
Result: FAIL
Failed 1/10 test programs. 0/2336 subtests failed.
make: *** [test_dynamic] Error 255
DMAKI/Text-MeCab-0.20013.tar.
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports DMAKI/Text-MeCab-0.20013.tar.
Running make install
make test had returned bad status, won't install without force
Failed during this command:
DMAKI/Text-MeCab-0.20013.tar.
ビルドは通ってるっぽいので
look Text::MeCab
で、Shellを起動し
make install
でテスト結果を無視して強引にインストールを実行。
無事にインストールされました。
特に今のところ動作に問題はありません。
何か潜んでいるかもしれませんが。。。
force install でも良かったのかな?
コメントする