wmorein.com > PyLucene on Debian Etch

Edgarest currently uses a search engine written from scratch, but I've been playing around with Lucene and specifically with PyLucene. Edgarest uses a bare installation of Debian Etch, so it took a little work to get it up and running. Here are the steps, starting from the base Debian Etch net install:

  1. Add "deb http://www.backports.org/debian etch-backports main contrib non-free" to /etc/apt/sources.list
  2. sudo apt-get update
  3. sudo apt-get install build-essential sun-java6-jdk ant subversion python-dev
  4. sudo update-java-alternatives --set java-6-sun
  5. wget http://downloads.osafoundation.org/PyLucene/jcc/PyLucene-2.4.0-1-src-jcc.tar.gz
    tar -xzvf PyLucene-2.4.0-1-src-jcc.tar.gz
    (note, you need to make sure your java version matches the setup.py files)
  6. cd PyLucene-2.4.0-1
  7. python setup.py build
  8. sudo python setup.py install
  9. cd ..
  10. Use your editor to edit Makefile, and uncomment Ubuntu 6.06 (even though it says Java 5)
  11. make
  12. sudo make install

You probably want to remove the backports line from your /etc/apt/sources.list since if you don't you'll get newer packages by default, when that might not be what you want for stability reasons.