1.安装 Python
sudo apt-get install python |
2.安装 Ant
sudo apt-get install ant |
3.安装 setuptools
sudo apt-get install python-setuptools |
打补丁:
mkdir tmp |
4.安装 JDK
sudo apt-get install openjdk-6-jdk |
5.安装 Pylucene 下载地址:http://www.apache.org/dyn/closer.cgi/lucene/pylucene/ tar xzvf pylucene-3.0.1-1-src.tar.gz cd pylucene-3.0.1-1/jcc
6.安装 jcc
python setup.py build |
7.修改 Makeifle 打开了这几行注释:
# Linux (Ubuntu 8.10 64-bit, Python 2.5.2, OpenJDK 1.6, setuptools 0.6c9) |
修改-m jcc 为 -m jcc.main
8.编译安装 Pylucene
make |