1.安装 Python
1 | sudo apt-get install python |
2.安装 Ant
1 | sudo apt-get install ant |
3.安装 setuptools
1 | sudo apt-get install python-setuptools |
打补丁:
1 | mkdir tmp |
4.安装 JDK
1 | 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
1 | python setup.py build |
7.修改 Makeifle 打开了这几行注释:
1 | # Linux (Ubuntu 8.10 64-bit, Python 2.5.2, OpenJDK 1.6, setuptools 0.6c9) |
修改-m jcc 为 -m jcc.main
8.编译安装 Pylucene
1 | make |