如果这是垃圾论坛,那么我很抱歉,但我觉得要为这个问题创建一个新线程,因为我现在在Ubuntu工作而不是Windows(赶紧!)。链接到旧帖子:Perl WordNet::Similarity installation issue
这是我现在得到的错误:
TPEDERSE/WordNet-SenseRelate-AllWords-0.19.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Error-Suffixes-tagged-wntagged.t .. Can't locate WordNet/Tools.pm in @INC (@INC contains: /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/lib /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/arch /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/Error-Suffixes-tagged-wntagged.t line 6.
BEGIN failed--compilation aborted at t/Error-Suffixes-tagged-wntagged.t line 6.
t/Error-Suffixes-tagged-wntagged.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/WordNet-SenseRelate-AllWords.t .... Can't locate WordNet/Tools.pm in @INC (@INC contains: /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/lib /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/arch /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/WordNet-SenseRelate-AllWords.t line 21.
BEGIN failed--compilation aborted at t/WordNet-SenseRelate-AllWords.t line 21.
t/WordNet-SenseRelate-AllWords.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/wsd.t ............................. Can't locate WordNet/Tools.pm in @INC (@INC contains: /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/lib /home/kristian/.cpan/build/WordNet-SenseRelate-AllWords-0.19-VGDkgr/blib/arch /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/wsd.t line 24.
BEGIN failed--compilation aborted at t/wsd.t line 24.
t/wsd.t ............................. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Test Summary Report
-------------------
t/Error-Suffixes-tagged-wntagged.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/WordNet-SenseRelate-AllWords.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/wsd.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=3, Tests=0, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.13 cusr 0.03 csys = 0.20 CPU)
Result: FAIL
Failed 3/3 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
TPEDERSE/WordNet-SenseRelate-AllWords-0.19.tar.gz
one dependency not OK (WordNet::Similarity); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TPEDERSE/WordNet-SenseRelate-AllWords-0.19.tar.gz
Running make install
make test had returned bad status, won't install without force
有什么想法吗? 感谢
UPD:安装缺失的模块后得到了这个:
测试摘要报告 - t / trace.t(Wstat:256测试:132失败:1) 测试失败:76非零退出状态:1 Files = 22,Tests = 2027,88 wallclock secs(0.48 usr 0.05 sys + 85.34 cusr 2.23 csys = 88.10 CPU) 结果:失败1/22测试程序失败。 1/2027子测试失败。使: *** [test_dynamic]错误255 TPEDERSE / WordNet-Similarity-2.05.tar.gz / usr / bin / make test - NOT OK //提示//查看cpan-testers结果 要安装此模块,请尝试:报告 TPEDERSE / WordNet-Similarity-2.05.tar.gz运行make install make test 已经返回不良状态,不会没有强制安装
答案 0 :(得分:0)
我们首先看到Can't locate WordNet/Tools.pm in @INC
你应该安装WordNet :: Tools然后重试这个安装。