我知道这个神秘的模块缺少文档,但我正在运行 Strawberry Perl,并且很高兴能够安装它。我通常从命令行运行类似以下内容来获取模块:
cpan WWW::Selenium
例如,获取 WWW::Selenium。然而当我跑步时
cpan Lucene
我明白了这一切,而且因为我以前从未见过这种情况,所以我将矛头指向 Windows,因为它缺乏更好的线索:
C:\Users\PHJohnson\Desktop>cpan Lucene
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Mon, 25 Jun 2012 18:28:43 GMT
Running install for module 'Lucene'
Running make for T/TB/TBUSCH/Lucene-0.18.tar.gz
CPAN: Digest::SHA loaded ok (v5.63)
CPAN: Compress::Zlib loaded ok (v2.042)
Checksum for C:\strawberry\cpan\sources\authors\id\T\TB\TBUSCH\Lucene-0.18.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.80)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
CPAN: CPAN::Meta loaded ok (v2.112621)
CPAN.pm: Building T/TB/TBUSCH/Lucene-0.18.tar.gz
couldn't find clucene config file at Makefile.PL line 34.
Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
TBUSCH/Lucene-0.18.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
C:\Users\PHJohnson\Desktop>
我想知道,我该如何解决这个问题 - 我可以在 Windows 上获取 Lucene 库吗?