2

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
4

1 に答える 1