Thanks to Adi's suggestion removed  JCC2.1  and installed JCC2.2.  Promise to 
post all steps once I get PyLucene built on Cygwin Windows for python 2.5.2. 

make for PyLucene is failing without much information after successfully 
building JCC2.2. Here is the output followed by what I have done to build JCC 
along with testing of JCC, and version numbers of gcc, ld, ant, and make.

$ make
cd lucene-java-2.4.1;  -Dversion=2.4.1
/bin/sh: -Dversion=2.4.1: command not found
make: *** [lucene-java-2.4.1/build/lucene-core-2.4.1.jar] Error 127
mada...@wnj10002dbitbtl:/c/Edwin/Download/python/pylucene-2.4.1-1

my steps...
$ 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
$ cd jcc
#updated setup.py so the contents of config.py are below.
INCLUDES=['/c/Edwin/Programs/Java/jdk1.6.0_13/include', 
                '/c/Edwin/Programs/Java/jdk1.6.0_13/include/win32']
CFLAGS=[]
DEBUG_CFLAGS=[]
LFLAGS=['-L/c/Edwin/Programs/Java/jdk1.6.0_13/lib', '-ljvm']
SHARED=True

#
$ python setup.py  build   #successful with warnings
$ python setup.py  install #successful

#Testing JCC
$ cd ..
#
$ python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14) 
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jcc
>>> dir(jcc)
['CLASSPATH', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 
'_jcc', 'initVM', 'os', 'sys']
>>> jcc._jcc
<module 'jcc._jcc' from 
'/usr/lib/python2.5/site-packages/JCC-2.2-py2.5-cygwin-1.5.25-i686.egg/jcc/_jcc.dll'>
>>> exit()

To build JCC, I installed gcc4.4 and ld2.19 instead of using default gcc and ld 
that come with Cygwin
$ ld -v   
GNU ld (GNU Binutils) 2.19.1
$ gcc -v 
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc-4.4.0/configure --enable-languages=c,c++
Thread model: single
gcc version 4.4.0 (GCC)
$ ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
$ make -version
GNU Make 3.81
.....
This program built for i686-pc-cygwin 

investigating....  I find lucene-core-2.4.1.jar under lucene-java-2.4.1 
directory.
$ find . -name lucene-core-2.4.1.jar
./lucene-java-2.4.1/lucene-core-2.4.1.jar

Any suggestions or hints please.
thanks in advance
Edwin




The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.

Reply via email to