Ken Kinder's personal website

PyLucene 2.0 on Ubuntu 5.10

I took me a mailing list post and some banging my head, but here’s how to get PyLucene 2.0 running on Ubuntu 5.10 (Breezy Badger):

Install these dependencies (some from universe):

sudo apt-get install python-dev gcj libgcj6-common libgcj6-dev make zlibc

Then put a file PyLucene needs to be in /usr there:

sudo cp /lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1

Then unpack PyLucene and change its Makefile:

--- PyLucene-src-2.0.0/Makefile 2006-05-27 01:06:51.000000000 -0600
+++ PyLucene-src-2.0.0.mine/Makefile    2006-05-30 12:49:17.000000000 -0600
@@ -118,16 +118,16 @@
 #PYTHON=$(PREFIX)/bin/python
 
 # Linux (with gcc 3.4.4 and libgcj statically linked)
-#PREFIX=/usr/local
-#PREFIX_PYTHON=$(PREFIX)
-#GCJ_HOME=/usr/local/gcc-3.4.4
-#GCJ_LIBDIR=$(GCJ_HOME)/lib
+PREFIX=/usr/local
+PREFIX_PYTHON=/usr
+GCJ_HOME=/usr
+GCJ_LIBDIR=$(GCJ_HOME)/lib
 #GCJ_STATIC=1
-#LIB_INSTALL=libstdc++.so.6 libgcc_s.so.1
+LIB_INSTALL=libstdc++.so.6 libgcc_s.so.1
 #DB=$(PYLUCENE)/db-$(DB_VER)
 #PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)
-#ANT=ant
-#PYTHON=$(PREFIX_PYTHON)/bin/python
+ANT=ant
+PYTHON=$(PREFIX_PYTHON)/bin/python
 
 # FreeBSD
 #PREFIX=/usr/local

Run “make all” then “make install” and you should be good to go!

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">