[pylucene-dev] pylucene/jcc compilation issues

Phil Christensen phil at bubblehouse.org
Wed Oct 24 18:24:09 PDT 2007


Hi all,

I've been trying to get PyLucene to compile on my Debian box using  
the recently released JCC source, but I'm having the missing  
libjava.so issue.


phil at babbitt:~/PyLucene-2.2.0-1$ export LD_LIBRARY_PATH=/usr/lib/jvm/ 
java-1.5.0-sun-1.5.0.10/jre/lib/i386/:/usr/lib/jvm/java-1.5.0- 
sun-1.5.0.10/jre/lib/i386/client/:/usr/lib/jvm/java-1.5.0- 
sun-1.5.0.10/jre/lib/i386/server

phil at babbitt:~/PyLucene-2.2.0-1$ sudo make install
[long command line snip]
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/jcc/__init__.py", line 27,  
in ?
     from jcc import cpp
   File "/usr/lib/python2.4/site-packages/jcc/__init__.py", line 30,  
in ?
     from _jcc import initVM
ImportError: libjava.so: cannot open shared object file: No such file  
or directory
make: *** [install] Error 1


This is happening at the last step of the installation process, when  
I'm doing `make install` for the main PyLucene stuff. The previous  
compile appears to run properly, and there are no issues during the  
compile/installation of JCC.

I've made sure to set my LD_LIBRARY_PATH variable, and confirmed that  
the library is where it's supposed to be. In fact, I know it's  
correct because I did have this issue during compilation, and it was  
fixed when I set the variable.

This is on a freshly installed Debian etch machine, Python 2.4, and  
JDK 1.5.0 (I originally tried 1.6, but switched after experiencing  
the same issue).

Any hints or suggestions would be greatly appreciated.

-phil



More information about the pylucene-dev mailing list