On Mar 4, 2011, at 10:56, Bill Janssen <jans...@parc.com> wrote: > Andi Vajda <va...@apache.org> wrote: > >> There are two shared libraries for jcc: _jcc.so, the python extension, >> and libjcc.so, the shared mode runtime shared library. That's the one >> that gets loaded by PythonVM.java. Its directory must be on java's >> java.library.path. > > No such beast gets built or installed:
If you didn't patch setuptools on linux as prompted by the jcc build then you don't have shared mode enabled and no libjcc.so. Shared mode is required for embedding. Andi.. > > % find /usr/local/lib/python2.6 -name \*.so > /usr/local/lib/python2.6/dist-packages/JCC-2.7-py2.6-linux-x86_64.egg/jcc/_jcc.so > /usr/local/lib/python2.6/dist-packages/JCC-2.6-py2.6-linux-x86_64.egg/jcc/_jcc.so > /usr/local/lib/python2.6/dist-packages/lucene-3.0.2-py2.6-linux-x86_64.egg/lucene/_lucene.so > % find /tmp/pylucene/branches/branch_3x/ -name \*.so > /tmp/pylucene/branches/branch_3x/jcc/build/lib.linux-x86_64-2.6/jcc/_jcc.so > % > > Here's what's in config.py: > > INCLUDES=['/usr/lib/jvm/java-6-openjdk/include', > '/usr/lib/jvm/java-6-openjdk/include/linux'] > CFLAGS=['-fno-strict-aliasing', '-Wno-write-strings'] > DEBUG_CFLAGS=['-O0', '-g', '-DDEBUG'] > LFLAGS=['-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64', '-ljava', > '-L/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server', '-ljvm', > '-Wl,-rpath=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server'] > IMPLIB_LFLAGS=[] > SHARED=True > VERSION="2.7" > > There *is* a libjcc.a. > > Bill