Unterschiede zwischen den Revisionen 2 und 9 (über 7 Versionen hinweg)
Revision 2 vom 2008-04-18 00:55:34
Größe: 1845
Autor: lars
Kommentar: compiling jcc finished
Revision 9 vom 2023-08-19 18:23:48
Größe: 0
Autor: phil
Kommentar: Veraltet
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 1: Zeile 1:
||<tablestyle="float:right;"> '''Inhalt'''[[TableOfContents]] ||
= What is it about? =

[http://pylucene.osafoundation.org/ PyLucene] is a [http://python.org/ python] interface for the [http://lucene.apache.org/ Lucene] indexing engine.

Indexing engines are used to parse data and store the content in way that is optimized for searching through it.

Another popular indexing engine is [http://xapian.org Xapian], but since its installation in Debian is more than trivial, there is no need for a howto :).

= Names and values =
||''Variable''||''Bedeutung''||''Beispiel''||

----

= Preparation =
== Which version of Lucene? ==
Currently there are two different releases of !PyLucene available:
 * to be built with [http://gcc.gnu.org/java/ GCJ] (the Java compiler from [http://gnu.org GNU]): for !PyLucene v2.2 and below
 * to be built with [http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/README JCC] (an alternative implementation): for !PyLucene v2.2 and higher

The developer of !PyLucene dropped support for GCJ since version 2.3, thus it should be reasonable to use the JCC sources.


= Installation =

== Get the source ==
 * download the source from the !PyLucene download site: http://downloads.osafoundation.org/PyLucene/jcc/
 * unpack it in a directory of your choice (''tar xzf ...''')
 * change into the source directory

== Compile JCC ==
You may skip this step, if you already have a working JCC installation.
# install required packages: {{{
aptitude install sun-java5-jdk g++ java-gcj-compat-dev python-dev
}}}
# ''fix'' the pre-settings in ''jcc/setup.py'' - a little bit dirty, but it works (alternative: fix the INCLUDE, CFLAGS and LFLAGS for linux in ''jcc/setup.py''): {{{
ln -s java-1.5.0-sun /usr/lib/jvm/java-6-sun
}}}
# compile JCC: {{{
cd jcc
python setup.py build
}}}

Creative Commons Lizenzvertrag
This page is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.