[pylucene-dev] [Solved] building pylucene fails here

Andi Vajda vajda at osafoundation.org
Thu Nov 29 09:19:27 PST 2007


On Thu, 29 Nov 2007, Helmut Jarausch wrote:

> Oh Dear,
>
> after getting my sledge hammer 'strace' I've found the reason.
> PLEASE add this to jcc/INSTALL !
>
> pylucene needs another library, so the following did work
> (passed all its tests)
> INCLUDES = {
>    'linux2': ['/usr/lib/jvm/sun-jdk-1.6/include',
>               '/usr/lib/jvm/sun-jdk-1.6/include/linux'],
> }
>
> LFLAGS = {
>    'linux2': ['-L/usr/lib/jvm/sun-jdk-1.6/jre/lib/i386','-L/usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/client',
>               '-ljava','-ljvm',
>               '-Wl,-rpath=/usr/lib/jvm/sun-jdk-1.6/jre/lib/i386:/usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/client'],
> }
>

So you were picking up a different - and incompatible - version of libjvm.so ?
In the current version of setup.py, there already is an -rpath argument 
under the LFLAGS for 'linux2' that includes i386/client.
I don't think there are any link time requirements to libjvm.so which is 
picked up by libjava.so for which there are link time requirements. So I'm 
not sure that adding the extra -L and -ljvm is going to help much unless 
i386/client is also on the -rpath (or LD_LIBRARY_PATH).

I'm glad you found the solution. A note in INSTALL is indeed welcome.

Andi..


More information about the pylucene-dev mailing list