You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Edwin Madari <Ed...@verizonwireless.com> on 2009/07/28 21:16:23 UTC
make-ing pylucene on linux, JCC built fine
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
madared@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
Re: make-ing pylucene on linux, JCC built fine
Posted by Andi Vajda <va...@apache.org>.
On Tue, 28 Jul 2009, Edwin Madari wrote:
> 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.
Your Java Lucene build is failing. You should get help with that from the
java-user@lucene.apache.org mailing list.
A guess: I suspect you're not running a sane Java. Is your Java installation
GCJ (as tends to be the default on Red Hat - at least it used to be) or is
it some version of Sun's JDK or Open JDK ? What does java -version return ?
If it's GCJ you need to configure your Java installation so that the desired
one (Sun's or OpenJDK) is being picked up by default instead of GCJ.
Andi..
>
> Total time: 2 seconds
> make: *** [lucene-java-2.4.1/build/lucene-core-2.4.1.jar] Error 1
> madared@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
>