lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Koch" <>
Subject AW: Building PyLucene on Windows
Date Mon, 30 Apr 2012 07:52:02 GMT
Jeremy,  (and Chris)
note that there are some pre-built binaries of PyLucene/JCC available for
Windows and other platforms in the pylucene extras project:

Anyway, I can shortly describe my setup for the build process :

I am currently using 
- pylucene-3.x with  Python 2.6 and Pyrthon 2.7 on windows (win7-32) with
the following tools:
- Java 1.6 (jdk1.6.0_06)
- Ant 1.8.0
- MS-Visual-Studio9 compiler (Microsoft Visual C++ 2008 Express Edition)
- Cygwin (for make basically)

I also tried a different toolchain with MinGW and GNU Make on windows once,
but had some problems so I'm currently happy with the above setup.

Here are the instructions for the step-by-step build process:

I. download the sources
II. build JCC

0. make sure to set JAVAHOME (or edit jcc/ ...)
e.g. JAVA_HOME=C:\Program Files\Java\jdk1.6.0_06
1. cd jcc
2. python build
3. python install
III. build PyLucene

0. make sure you have Python, Java and Ant installed (I also use cygwin for
make process)
1. edit the Makefile and adapt to your configuration/environment
 - there are some pre-set sample configs you may choose (i.e. uncomment)
 - you may need to change path details and version numbers ...
e.g. (my env)
# Windows   (Win32, Python 2.7, Java 1.6, ant 1.8.0 - all 32-Bit!)
JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_06
JCC=$(PYTHON) -m jcc --shared --find-jvm-dll

2. (in cygwin) run make  i.e.
   make install
   make test 

Hope that helps!

kind regards

OrbiTeam Software GmbH & Co. KG, Germany

> -----Urspr√ľngliche Nachricht-----
> Von: Jeremy Michels []
> Gesendet: Samstag, 28. April 2012 20:14
> An:
> Betreff: Building PyLucene on Windows
> Would you be willing to share your makefile? I am having quite a bit of
> trouble with this as well.

View raw message