Woo hoo! While I normally work with FreeBSD, I am hoping to have the same result with Fedora Core 6. Not sure if any folks are reporting success here. Please post your experiences one way or the other please.

On another note, I wonder if it will be possible to build and install an egg eventually. Almost all my python work is moving in this direction, it would be nice to be able to install pyLucene in the same way and incorporate it into my buildouts. Many thanks.

Regards,
David

Andi Vajda wrote:

Just a quick note to let you all know that building PyLucene on Ubuntu Linux Feisty Fawn 7.04 (32 bit) using the default gcj 4.1.2 as installed with their package manager produced a sane PyLucene. This is the first time I was able to build a sane PyLucene with an out-of-the-box gcj on Linux !

I still have to select Sun's JDK javac as the front-end compiler, this is what's done with the 'update-java-alternatives' command below.

Here are the steps I followed once I had the Live CD installed:

  - sudo apt-get install subversion
  - svn co http://svn.osafoundation.org/pylucene/trunk PyLucene
  - sudo apt-get install ant
  - sudo apt-get install sun-java5-jdk
  - sudo update-java-alternatives -s java-1.5.0-sun
  - sudo apt-get install g++
  - sudo apt-get install gcj
  - sudo apt-get install python-dev
  - edit PyLucene's Makefile to include:

# Linux (with gcc 4.1.2 and libgcj dynamically linked)
PREFIX=/usr
PREFIX_PYTHON=$(PREFIX)
LIBDIR_NAME=lib
GCJ_HOME=/usr
GCJ_LIBDIR=$(GCJ_HOME)/$(LIBDIR_NAME)
GCJ_STATIC=0
#LIB_INSTALL=libstdc++.so.7 libgcc_s.so.1
#DB=$(PYLUCENE)/db-$(DB_VER)
#PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python

  - cd /usr/lib
  - sudo ln -s libstdc++.so.6.0.8 libstdc++.so.6
  - cd ~/PyLucene
  - make
  - sudo make install
  - make test
    all tests passed

Andi..

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to