Subject: | Several tests fail without running with message "Can't locate Lucene/QueryParser.pm in @INC" |
When running the tests, I ran into the error above. The following tests all use this module.
indexsearcher.t:use Lucene::QueryParser;
search_hits.t:use Lucene::QueryParser;
segments.t:use Lucene::QueryParser;
sloppy_scorer.t:use Lucene::QueryParser;
tokenizer.t:use Lucene::QueryParser;
It can be solved by making sure that Lucene::QueryParser is in the Build.PL script. I have included a patch to fix this. The other possibility is that you really meant to use Plucene::QueryParser.
--- Plucene-1.0/Build.PL 2004-02-02 10:05:19.000000000 -0600
+++ Plucene-patch/Build.PL 2004-02-03 08:22:29.000000000 -0600
@@ -30,6 +30,7 @@
'Memoize' => '1.01',
'Tie::Array::Sorted' => '1.1',
'Time::Piece' => '1.08',
+ 'Lucene::QueryParser' => '1.04',
},
build_requires => {
'File::Slurp' => '2002.1031',