On Thu, 13 Jul 2006, Christian Klinger wrote:

i ´use a Suse Linux. I ´ve compiled gcc 3.4.6 myself. make test runs into errors with the following output.

linux:/tmp/luc/PyLucene-src-2.0.0 # make test
cd samples/LuceneInAction; /usr/local/bin/python index.py
Traceback (most recent call last):
File "index.py", line 11, in ?
  False)
File "/tmp/luc/PyLucene-src-2.0.0/samples/LuceneInAction/lia/common/TestDataDocumentHandler.py", line 38, in createIndex
  writer = IndexWriter(indexDir, StandardAnalyzer(), True)
PyLucene.JavaError: java.lang.NullPointerException
make: *** [samples/LuceneInAction/index] Error 1

linux:/tmp/luc/PyLucene-src-2.0.0 # /usr/local/gcc-3.4.6/bin/gcc -v
Reading specs from /usr/local/gcc-3.4.6/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --enable-threads=posix --prefix=/usr/local/gcc-3.4.6 --enable-languages=c,c++,java
Thread model: posix
gcc version 3.4.6

gcj 3.4.6 should work on Suse but I don't have access to a Suse system so I can't verify this. Are you sure you used the gcj you compiled to build PyLucene ? Are you sure that you're running with the libgcj you built ? Did you set LD_LIBRARY_PATH so that the correct libgcj.so is picked up ?

Have you tried to use the binaries built for Ubuntu or Red Hat available from the PyLucene web site ?

If all fails, try earlier versions of gcj like 3.4.3 but I'd be really surprised if that solved the problem. You may also try newer versions such as gcj 4.1.0 but I've had more problems with gcj 4 everywhere.

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to