> From: "Edward N.Zalta" <[EMAIL PROTECTED]>
> Date: Thu, 6 Sep 2007 21:01:41 -0700
> To: <[EMAIL PROTECTED]>
> Subject: [pylucene-dev] PyLucene on FreeBSD
>
> Dear TJ,
> We have been working for a couple of days trying to compile
> PyLucene on a FreeBSD 6.1 (i386) system which has both python2.4 and
> python2.5 on it. (We use PyLucene on our OSX box to run the search
> engine at http://plato.stanford.edu/ and we now want to install it on
> one of our mirror sites, but which runs FreeBSD.)
> We can compile PyLucene against the python2.4 (and includes) and
> it compiles, but we have one of the following problems:
> a) libgcj.so.5 can't find libgcc_s.so.1.
> b) when we put libgcc_s.so.1 in any of the places libgcj can
> find it, we get a segmentation fault But the compile of PyLucene
> against python2.5 (and includes) fails.
> BTW, we compiled and installed gcc-3.4.6 ourselves in a user home
> directory and used it for the compiles of PyLucene; the FreeBSD
> system was installed in March 2006 with gcc-3.4.4.
> But you seem to have had some success in getting PyLucene compiled
> and working properly with gcc-3.4.6. In particular, in your May 30,
> 2007 post at
>
> http://www.mail-archive.com/[email protected]/msg01365.html
>
> you suggest that patches are needed for the gcc-3.4.6 Makefile and
> the PyLucene Makefile. If you've documented the process and the
> patches elsewhere, we would greatly appreciate a pointer. If not,
> please let us know how you got PyLucene to work
>
> Thanks for any help you can give us.
> Yours,
> Ed
> -------------------------------------------------------
> Edward N. Zalta http://mally.stanford.edu/zalta.html
> Senior Research Scholar
> CSLI/Cordura Hall [EMAIL PROTECTED]
> Stanford University ph. 650-723-0488
> Stanford, CA 94305-4115 fx. 650-725-2166
> -------------------------------------------------------
>
>
Edward,
Sorry for the delay in getting back to you! I've been in the middle of a
huge project here which is keeping me very busy. I am going to do my best
to help but keep in mind it was several months ago that I built PyLucene on
our servers. FYI, I spent hours upon hours getting this to work but it was
very worth it as we have used PyLucene on FreeBSD for several months now
with thousands of concurrent queries without issue.
I built GCJ from ports, not by hand as I also couldn't get PyLucene to pass
the make tests when I did so. A while back, the gcc 3.4 maintainer removed
the java build as he felt no one wanted/needed it ( how wrong he was! ). I
apologize that I lost my patch but one simply needs to download the GCJ
source (eg gcc-java-3.4.6.tar.bz2) to /usr/ports/distfiles and update the
port's makefile (adding the final line below):
DISTFILES= gcc-core-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-g++-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-g77-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-objc-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-testsuite-${VERSIONSTRING}${EXTRACT_SUFX} \
gcc-java-${VERSIONSTRING}${EXTRACT_SUFX}
Once gcc/gcj is built and installed, I used the following Makefile settings
for PyLucene:
# FreeBSD
PREFIX=/usr/local
PREFIX_PYTHON=$(PREFIX)
LIBDIR_NAME=lib
GCJ_HOME=/usr/local
GCJ_LIBDIR=/usr/local/lib/gcc/i386-portbld-freebsd6.2/3.4.6
GCJ_STATIC=0
LIB_INSTALL=libstdc++.so.6 libgcc_s.so.1
CC=$(GCJ_HOME)/bin/gcc34
CXX=$(GCJ_HOME)/bin/g++34
JCC=$(GCJ_HOME)/bin/gcj34
JCCH=$(GCJ_HOME)/bin/gcjh34
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
Obviously, modify this for your version of FreeBSD and also be sure to
install apache ant, libiconv and gettext prior to building.
Give it a run and let me know how it works out. I'll help anyway that I
can.
TJ Ninneman
Systems Engineer
Two Peas In A Bucket
A Kaboose Company
Tel: 608.827.0852 Fax: 608.827.0869
http://twopeasinabucket.kaboose.com
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev