thanks in advance to Andi. It took me a while but managed to send emails
without disclaimer at the bottom.
To build pylucene switched to intel linux, since failed to build on
windows with cygwin or mingw or combination. whatever it takes to get
pylucence, willing to do. on Linux Using:
Python 2.5.1
gcc & g++ version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC)
Apache Ant version 1.7.0 compiled on February 21 2008
java full version "1.6.0_14-b08"
#contents of jcc/config.py when building JCC
INCLUDES=['/usr/jdk1.6.0_14/include', '/usr/jdk1.6.0_14/include/linux']
CFLAGS=['-fno-strict-aliasing', '-Wno-write-strings']
DEBUG_CFLAGS=['-O0', '-g', '-DDEBUG']
LFLAGS=['-L/usr/jdk1.6.0_14/jre/lib/i386', '-ljava',
'-L/usr/jdk1.6.0_14/jre/lib/i386/client', '-ljvm',
'-Wl,-rpath=/usr/jdk1.6.0_14/jre/lib/i386:/usr/jdk1.6.0_14/jre/lib/i386/client']
SHARED=True
intalled JCC after installing patch.43. Looks good.
import jcc
dir(jcc)
['CLASSPATH', '__builtins__', '__doc__', '__file__', '__name__',
'__path__', '_jcc', 'initVM', 'os', 'sys']
jcc.__file__
'/usr/lib/python2.5/site-packages/JCC-2.2-py2.5-linux-i686.egg/jcc/__init__.pyc'
exit()
#changes to Makefile for pylucene
PREFIX_PYTHON=/usr
ANT=ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=2
make is failing....
$ make
cd lucene-java-2.4.1; ant -Dversion=2.4.1
Buildfile: build.xml
javacc-uptodate-check:
javacc-notice:
jflex-uptodate-check:
jflex-notice:
init:
clover.setup:
clover.info:
[echo]
[echo] Clover not found. Code coverage reports disabled.
[echo]
clover:
common.compile-core:
[mkdir] Created dir:
/home/madared/Projects/build_pylucene/pylucene-2.4.1-1/lucene-java-2.4.1/build/classes/java
[javac] Compiling 330 source files to
/home/madared/Projects/build_pylucene/pylucene-2.4.1-1/lucene-java-2.4.1/build/classes/java
[javac] Unrecognized option : 10000000
BUILD FAILED
/home/madared/Projects/build_pylucene/pylucene-2.4.1-1/lucene-java-2.4.1/common-build.xml:222:
The following error occurred while executing this line:
/home/madared/Projects/build_pylucene/pylucene-2.4.1-1/lucene-java-2.4.1/common-build.xml:481:
Compile failed; see the compiler error output for details.
Total time: 2 seconds
make: *** [lucene-java-2.4.1/build/lucene-core-2.4.1.jar] Error 1
mada...@njwarhqd0it0f23:~/Projects/build_pylucene/pylucene-2.4.1-1
lines 222 and 481 from common-build.xml where make is complaining look ok
to me:
...
222 destdir="${build.dir}/classes/java">
...
481 target="${javac.target}">
...
any one seen this or am I missing any steps. any suggestions.
thanks in advance
Edwin