[pylucene-dev] successful installation of PyLucene 0.9.6 on ubuntu 5.04

Peter Hoffmann tosh54 at gmail.com
Fri Apr 22 10:04:17 PDT 2005


Hi all,

while i have some problems with the latest 0.9.8 Version (see other
post) I was able to install 0.9.6 on Ubuntu 5.04:


Installed Packages
------------------
Install with all dependences.

$ sudo aptitude install build-essential gcj checkinstall python2.4-dev swig


Makefile Changes
----------------
Uncomment the linux lines and change PREFIX to /usr and GCJ_HOME to /usr too.

$ diff -u PyLucene-0.9.6_orig/Makefile PyLucene-0.9.6/Makefile
--- PyLucene-0.9.6_orig/Makefile        2005-04-22 18:03:11.000000000 +0200
+++ PyLucene-0.9.6/Makefile     2005-04-22 18:03:34.000000000 +0200
@@ -67,10 +67,10 @@
  #PREFIX_DB=/usr/local/BerkeleyDB.$(DB_LIB_VER)

 # Linux
-#PREFIX=/usr/local
-#PREFIX_PYTHON=$(PREFIX)
-#SWIG=$(PREFIX)/bin/swig
-#GCJ_HOME=/usr/local
+PREFIX=/usr
+PREFIX_PYTHON=$(PREFIX)
+SWIG=$(PREFIX)/bin/swig
+GCJ_HOME=/usr
  #DB=$(PYLUCENE)/db-$(DB_VER)
  #PREFIX_DB=$(PREFIX)/BerkeleyDB.$(DB_LIB_VER)


Make and Install
----------------
I'm using checkinstall instead of make install.

$ make
$ sudo checkinstall


Test Installation
-----------------
$ cd samples/
$ python IndexFiles.py .
$ python SearchFiles.py


@Victor: you need to install python2.4-dev to get Python.h.


Peter



More information about the pylucene-dev mailing list