[pylucene-dev] building PyLucene from sources on Ubuntu 7.04
Andi Vajda
vajda at osafoundation.org
Tue May 8 12:09:59 PDT 2007
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..
More information about the pylucene-dev
mailing list