我尝试使用ActiveState和Strawberry但每次运行时都会收到相同的错误消息
cpan install WordNet::Similarity
将其缩短至此输出:
C:\strawberry\perl\bin\perl.exe "-Iblib\arch" "-Iblib\lib" build/Depthfiles.PL b
lib\lib/WordNet/synsetdepths.dat
Generating default depth files.
Loading WordNet::QueryData... done
Finding depths of noun taxonomies... (getSense) Internal error: offset=00002342
pos=n at C:/strawberry/perl/site/lib/WordNet/QueryData.pm line 633, <GEN8> line
1.
Compilation failed in require at build/Depthfiles.PL line 27, <GEN8> line 1.
dmake.exe: Error code 255, while making 'blib\lib\WordNet\synsetdepths.dat'
TPEDERSE/WordNet-Similarity-2.05.tar.gz
C:\strawberry\c\bin\dmake.exe -- NOT OK
CPAN: YAML::XS loaded ok (v0.41)
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'WordNet::Similarity'.
之前我遇到过WordNet丢失了一些.dat文件的问题,但是我在Ted Pedersen邮件存档的帮助下解决了这个问题。但是这个让我陷入困境。任何人都有任何想法?
更新:
好的,我现在在Ubuntu工作,但现在我遇到了另一个问题:
# Failed test at t/trace.t line 141.
# got: '4'
# expected: '0'
# lesk: The lines 'Overlaps: 1 x "the" 1 x "small" 1 x "of" 2 x "any" 1 x "in the" 1 x "or" 1 x "resembling the" 1 x "and" ' and 'Overlaps: 1 x "the" 1 x "small" 1 x "in the" 1 x "or" 1 x "of" 1 x "resembling the" 2 x "any" 1 x "and" ' differ
t/trace.t ......... 107/132 # Looks like you failed 1 test of 132.
t/trace.t ......... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/132 subtests
t/vector.t ........ ok
t/vector_pairs.t .. ok
t/wn30loop.t ...... ok
t/wup.t ........... ok
Test Summary Report
-------------------
t/trace.t (Wstat: 256 Tests: 132 Failed: 1)
Failed test: 76
Non-zero exit status: 1
Files=22, Tests=2027, 136 wallclock secs ( 0.68 usr 0.05 sys + 132.59 cusr 3.44 csys = 136.76 CPU)
Result: FAIL
Failed 1/22 test programs. 1/2027 subtests failed.
make: *** [test_dynamic] Error 255
TPEDERSE/WordNet-Similarity-2.05.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TPEDERSE/WordNet-Similarity-2.05.tar.gz
Running make install
make test had returned bad status, won't install without force
答案 0 :(得分:0)
这是一个不寻常的错误,但我想知道从WordNet删除内容你是否可能删除了其他内容?我对Windows不起作用,但如果你确实可以选择在Linux上运行那么我觉得事情会更顺利。也就是说,我知道它在Windows上运行(有来自Strawberry和Active Perl的积极报告)。
所以...关于我唯一可以建议的是尝试在Windows上重新安装WordNet,或者如果你可以在Linux上运行,请考虑这样做,因为我认为这往往是一个相当顺利的安装。我认为它也可能在Windows上,我认为它不常见。