> How about using '-Wl,-rpath=' instead of '-Wl,rpath=' ?

Finally got it to work.  For posterity (including me, when I have to build
this on production).  Thanks to everyone for their help.

1) Downloaded PyLucene for JCC and unpacked it

Switch into the "jcc" subdirectory

2) Installed the Sun Java 5 JDK, and made it the default per the
instructions in jcc/INSTALL.
3) Updated jcc/setup.py so that the includes files would be found at compile
time, the libraries would be found at link time, and the dynamic libraries
would be found at run time.  Here is what I ended up with:

INCLUDES = {
    'linux2': ['/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include',
               '/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/include/linux'],
}

LFLAGS = {
    'linux2': ['-L/usr/lib/jvm/java-1.5.0-sun-1.5.0.08/jre/lib/i386',
'-ljava',            '-Wl,-rpath=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08
/jre/lib/i386:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08
/jre/lib/i386/client:/usr/lib/jvm/java-1.5.0-sun-1.5.0.08
/jre/lib/i386/client'],
    'win32': ['/LIBPATH:o:/Java/jdk1.6.0_02/lib', 'jvm.lib']
}


4) Built jcc via "python setup.py build" and "python setup.py install".
(Note, if you have to re-do this, delete the entire "jcc/build" directory to
force the rebuilding of the files.)

Okay, now go up a directory to PyLucene.

5) Downloaded and installed Ant and made sure it's on my path.
6) Updated the Makefile so that PYTHON and JCC are pointing to the right
place.
7) ran "make all" to build, um, something.  It took a looong time.  But it
finished successfully.
8) Ran "sudo make install" to install the stuff that was just built.  Note:
if you get issues about "blahblah.so not found", go back to the jcc building
step and work on your LFLAGS definition.

Finally, start python, and type "import lucene"



-- 
I am often wrong, but I am never in doubt.
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to