[pylucene-dev] Re: PyLucene install errors [was: JCC install
janssen at parc.com
Thu Feb 14 08:07:19 PST 2008
> notice that I removed '-ljava' from LFLAGS - with it it didnt work:
> libjava.so not found, even if I have it in the indicated paths:
> -rwxr-xr-x 1 root root 185K Dec 14 10:32
> ... anyway, it compiled/installed, so why complain?
You need to have "-ljava"; that is what causes the Java libraries to
be linked into Python extensions built with JCC (like PyLucene).
You are right in thinking that's what caused the error:
undefined symbol: JNI_GetDefaultJavaVMInitArgs
> Inspired by the "WINDOWS" section, I modified (in "linux2") the line so:
Instead of modifying this (you should only be changing the Makefile,
which I believe in your system is in the directory
/usr/src/PyLucene-2.3.0-1/), try setting the JAVA_HOME environment
variable before you do the "make":
then do "make".
More information about the pylucene-dev