[pylucene-dev] Re: PyLucene install errors [was: JCC install
errors]
Bill Janssen
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
> /usr/java/jdk1.6.0_04/jre/lib/i386/libjava.so
>
> ... 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:
ImportError:
/usr/lib/python2.5/site-packages/JCC-1.7-py2.5-linux-i686.egg/jcc/_jcc.so:
undefined symbol: JNI_GetDefaultJavaVMInitArgs
> Inspired by the "WINDOWS" section, I modified (in "linux2") the line so:
>
> ANT=JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun-1.6.0.04;ant
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":
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun-1.6.0.04
then do "make".
Bill
More information about the pylucene-dev
mailing list