On Feb 3, 2009, at 2:17 PM, Andi Vajda wrote:


On Tue, 3 Feb 2009, Michael McCandless wrote:


I'm trying build PyLucene off of Lucene's current trunk, on OS X
10.5.6.

So I first did "ant package-tgz" in a clean Lucene checkout, to get a
tgz with all interesting JARS (side note: it'd be nice if JCC could
get the JARs out of the tgz or zip file).

PyLucene's Makefile does all of that for you.
As described here:
 http://lucene.apache.org/pylucene/documentation/install.html

1. build JCC
2. use the Makefile to build PyLucene

Duh, I had missed the Makefile!   Gotta read instructions better...

Then I tried to run the example at
http://lucene.apache.org/pylucene/jcc/documentation/readme.html but
hit a few initial challenges:

* Where does extensions.jar come from?  (I'm trying to run jcc, and
 apparently I need to point it to extensions.jar).

PyLucene's Makefile builds it for you.

OK.

* I'm getting a cryptic error from JCC when it tries to init the
 JVM (I'm on OS X 10.5.6):

_NSJVMLoadLibrary: NSAddLibrary failed for /System/Library/ Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/ libjvm.dylib
JavaVM FATAL: Failed to load the jvm library.

Could it be a 64-bit vs 32-bit VM issue. On Mac OS X, Python is 32- bit unless you build your own. Be sure to use the corresponding Java VM.

Good point, looks like this is my problem.

Thanks!

Mike

Reply via email to