On Fri, 12 Jun 2009, edwin.mad...@verizonwireless.com wrote:

With Andi's advise (thanks Andi) got a little further building PyLucence 2.4.1-1 on cygwin windows, but build is complaining about missing build.xml in one of the subdirectories. Successful build and install of JCC2.2 on cygwin was an accomplishment in itself. Goal is to get PyLucene built for cygwin platform and share with all. Does JCC2.3 make a difference in building PyLucence 2.4.1-1? if JCC2.3 is available for download someplace without using svn - I will do it. But I could not find a regular separate downloadable JCC2.3 anywhere.

You should use PyLucene 2.4.1-2, it comes with JCC 2.3.

$ make
cd lucene-java-2.4.1; ant -Dversion=2.4.1
Buildfile: build.xml

jar.core-check:

compile-demo:
   [mkdir] Created dir: 
c:\Edwin\Download\python\pylucene-2.4.1-1\lucene-java-2.4.1\build\classes\demo
   [javac] Compiling 17 source files to 
c:\Edwin\Download\python\pylucene-2.4.1-1\lucene-java-2.4.1\build\classes\demo

BUILD SUCCESSFUL
Total time: 1 second
cd lucene-java-2.4.1/contrib/snowball; ant -Dversion=2.4.1
Buildfile: build.xml does not exist!
Build failed
make: *** [lucene-java-2.4.1/build/contrib/snowball/lucene-snowball-2.4.1.jar] 
Error 1

Since I do not have the luxury of using SVN, I manually download lucene-2.4.1.tar.gz and expand it into lucene-java-2.4.1.tar.gz under pylucene-2.4.1-1 directory.

What do you mean by 'luxury' ? svn is free. svn is available for cygwin.
It would be easier for you if you just installed it.
See: http://subversion.tigris.org/

With little tweaking of Makefile, found build files missing in 6 following directories. $(LUCENE)/build/contrib/snowball $(LUCENE)/build/contrib/highlighter $(LUCENE)/build/contrib/analyzers $(LUCENE)/build/contrib/regex $(LUCENE)/build/contrib/queries $(LUCENE)/build/contrib/instantiated

my steps:
# download pylucene-2.4.1-1-src.tar.gz & lucene-2.4.1.tar.gz
$ tar -xvzf pylucene-2.4.1-1-src.tar.gz
$ cd pylucene-2.4.1-1
$ tar -xvzf ../lucene-2.4.1.tar.gz
$ mv lucene-2.4.1/ lucene-java-2.4.1/

#edit Makefile, add following variables for cygwin platform and then run make.
PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=2

Am I missing something trivial OR do I need to create build.xml files by hand (I did not think so) in these directories ? if so a sample or example would be help. any suggestions or ideas please.

I just downloaded lucene-2.4.1-src.tar.gz from one of the Apache mirrors and all the build.xml files are in there. For example, the snowball contrib package's build.xml is there and at the right place:

 $ tar vtzf lucene-2.4.1-src.tar.gz | grep build.xml | grep snowball
-rw-r--r-- 0/0   4024 2009-03-02 09:11:01 
lucene-2.4.1/contrib/snowball/build.xml

There are 25 build.xml files total in that source archive:

 $ tar vtzf lucene-2.4.1-src.tar.gz | grep build.xml | wc
       25     150    2265

Andi..

Reply via email to