[pylucene-dev] NullPointerException in writer.optimize() -
Compiling PyLucene on CentOS 5
Andi Vajda
vajda at osafoundation.org
Wed Sep 19 09:43:46 PDT 2007
On Wed, 19 Sep 2007, Andi Vajda wrote:
> On Wed, 19 Sep 2007, Felix Schwarz wrote:
>
>> I compiled PyLucene on CentOS 5 (i386) in order to built an rpm. Compiling
>> works fine but afterwards "make test" does not:
>>
>> $ gcj --version
>> gcj (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
>>
>> What other information do you need to diagnose the problem? How I can I
>> debug this?
>
> This is usually a problem with gcj. You should have better luck with gcj
> 3.4.6 or, on Linux, gcj 4.2.0.
Also, for a reason still mysterious to me, if you're building from a PyLucene
source tarball that contains pre-built lucene jar files, you can only use gcj
3.4.x. If you're building with gcj 4.x, you must start from svn sources and
compile the lucene .java files on your machine. The PyLucene Makefile handles
all that when starting from svn sources.
I've had a sane PyLucene built from gcj 4.1.2 before as well, not just 4.2.0.
Andi..
More information about the pylucene-dev
mailing list