[pylucene-dev] Build of PyLucene/JCC failed on Ubuntu 7.04

Andi Vajda vajda at osafoundation.org
Wed Sep 26 08:51:03 PDT 2007


On Wed, 26 Sep 2007, Jarek Zgoda wrote:

> I tried to build PyLucene/JCC on ubuntu 7.04 and it failed. Perhaps the
> cause is JDK6 I'm using, because _jcc.so links libjava.so as missing.
> Here's an excerpt from my modified setup.py for JCC:
>
> INCLUDES = {
>    'linux2': ['/usr/lib/jvm/java-6-sun-1.6.0.00/include',
>               '/usr/lib/jvm/java-6-sun-1.6.0.00/include/linux'],
> }
>
> LFLAGS = {
>    'linux2': ['-L/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386', '-ljava'],
> }

Did you set LD_LIBRARY_PATH to include something like:
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client

There are two directories on this path, one for libjava.so and one for the 
hotspot VM chosen (client or server), libjvm.so. This is the way it is for 
Java 1.5. Maybe things are different with Java 1.6 which I haven't tried on 
Linux. I gave Java 1.6 a try on win2k and it built and ran fine and seemed to 
follow the same path requirements as Java 1.5.

> Is the JDK6 not supported by JCC?

I've tried it on win2k only so far and I don't see why it wouldn't work 
elsewhere as well.

Andi..


More information about the pylucene-dev mailing list