lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: Question about building 64bit pylucene on Darwin
Date Mon, 03 May 2010 18:37:55 GMT

On Mon, 3 May 2010, Michael Manoochehri wrote:

> I have a question about building a 64 bit binary of _lucene.so on Darwin.
>
> I am using (from uname):
> Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009;
> root:xnu-1228.15.4~1/RELEASE_I386 i386
>
> In my Makefile, I have uncommented:
> Mac OS X 10.6 (64-bit Python 2.6, Java 1.6)
> PREFIX_PYTHON=/usr
> ANT=ant
> PYTHON=$(PREFIX_PYTHON)/bin/python
> JCC=$(PYTHON) -m jcc.__main__ --shared --arch x86_64
> NUM_FILES=2
>
> But after building and installing, when I check the _lucene.so binary, it
> returns
>>>> file
> /Library/Python/2.5/site-packages/lucene-3.0.1-py2.5-macosx-10.5-i386.egg/lucene/_lucene.so
>
> /Library/Python/2.5/site-packages/lucene-3.0.1-py2.5-macosx-10.5-i386.egg/lucene/_lucene.so:
> Mach-O universal binary with 2 architectures
> /Library/Python/2.5/site-packages/lucene-3.0.1-py2.5-macosx-10.5-i386.egg/lucene/_lucene.so
> (for architecture i386):    Mach-O bundle i386
> /Library/Python/2.5/site-packages/lucene-3.0.1-py2.5-macosx-10.5-i386.egg/lucene/_lucene.so
> (for architecture ppc7400):    Mach-O bundle ppc
>
> Any suggestions for me to produce an x86_64 build (basically, I'm trying to
> use pylucene with 64bit apache2 + wsgi)?

You're doing the right thing. The --arch x86_64 tells gcc to skip the 
building of i386 and ppc binaries (and saves two thirds of compile time).

You probably have another section of the PyLucene Makefile uncommented 
thus overriding the one you actually want to run.

When the build is going, verify that the jcc command output from 'make' 
shows the --arch x86_64 parameter.

Andi..

Mime
View raw message