[pylucene-dev] [Solved] building pylucene fails here
Helmut Jarausch
jarausch at igpm.rwth-aachen.de
Thu Nov 29 02:57:18 PST 2007
On 27 Nov, Andi Vajda wrote:
>
> On Tue, 27 Nov 2007, Helmut Jarausch wrote:
>
>> I have tried to build PyLucene-2.2.0-1 here on my Gentoo system.
>> Having found the hint to add the rpath to the compiler flags I
>> got somewhere but now I struggle with the next problem (sorry, I like
>> Python but not Java)
>>
>> File "/usr/lib/python2.5/site-packages/jcc/__init__.py", line 27, in <module>
>> from jcc import cpp
>> File "/usr/lib/python2.5/site-packages/jcc/__init__.py", line 30, in <module>
>> from _jcc import initVM
>> ImportError: /usr/lib/jvm/sun-jdk-1.6/jre/lib/i386/libjava.so: symbol JVM_GetClassSignature,
>> version SUNWprivate_1.1 not defined in file libjvm.so with link time reference
>
> I've been able to do the same thing on Ubuntu with the same Sun Java 1.6 VM
> without any problems. Your paths seem correct. Maybe you could ask some
> Gentoo forum about this issue with Java ?
> If you solve this, posting the solution here might be helpful too.
>
> Thanks !
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'],
}
Thanks for PyLucence,
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
More information about the pylucene-dev
mailing list