[pylucene-dev] PyLucene install errors [was: JCC install errors]
Alessandro Magni
magni at inrim.it
Wed Feb 13 01:56:30 PST 2008
thank you for your ongoing help,
I realize my questions are "basic", but the java world is fairly more
complicated to what I'm used...
> Your include path shows that you're using the gcj include files. Not good.
> Your path seems to show that you're using the Iced Tea VM, a fork of
> Sun's JVM openjdk project which is a lot better already although I've
> not tested build 21. I've built and tested build 23.
> Either way, using Sun jdk 5 or 6 should solve your issues.
> In any case, make sure that the JVM you're using corresponds to the
> header files and libraries you're compiling PyLucene with.
> Using jcc-pylucene with gcj is untested and not supported. Use sun jdk
> 5 or 6 or openjdk build >= 23 instead.
I installed it as you suggested - not banal, but the help page at
http://rabbitbrush.frazmtn.com/sun-java-on-F8.html was really a godsend.
JCC built/installed OK
But the main program still gives me problems:
[root at lambda2 PyLucene-2.3.0-1]# make
cd lucene-java-2.3.0; ant -Dversion=2.3.0
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:
[javac] Compiling 258 source files to
/usr/src/PyLucene-2.3.0-1/lucene-java-2.3.0/build/classes/java
BUILD FAILED
/usr/src/PyLucene-2.3.0-1/lucene-java-2.3.0/common-build.xml:218: The
following error occurred while executing this line:
/usr/src/PyLucene-2.3.0-1/lucene-java-2.3.0/common-build.xml:474: Unable
to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/java/jdk1.6.0_04/jre"
Total time: 2 seconds
make: *** [lucene-java-2.3.0/build/lucene-core-2.3.0.jar] Error 1
... yet I'm sure the "alternatives" for java,javac,libjavaplugin.so all
point to sun location, e.g.:
[root at lambda2 PyLucene-2.3.0-1]# alternatives --config javac
There are 3 programs which provide 'javac'.
Selection Command
-----------------------------------------------
* 1 /usr/lib/jvm/java-1.7.0-icedtea/bin/javac
2 /usr/lib/jvm/java-1.5.0-gcj/bin/javac
+ 3 /usr/lib/jvm/java-1.6.0-sun/bin/javac
and - this puzzles me most - here is my JAVA_HOME:
[root at lambda2 PyLucene-2.3.0-1]# echo $JAVA_HOME
/usr/lib/jvm/java-1.6.0-sun-1.6.0.04/bin
how in the world it's able to reset it? I'm sure it's not in the
PyLucene Makefile...
Puzzled,
alessandro
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/ Dr.Alessandro Magni
\ Electromagnetics Division
/ INRiM Strada delle Cacce 91, 10135 Torino (ITALIA)
\ Email magni at inrim.it
/ Tel: 0039-011-3919821 Fax: 0039-011-3919834
\ URL http://www.inrim.it/~magni
/ Our business in life is not to succeed but to continue to fail
\ in high spirits. -- Robert Louis Stevenson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the pylucene-dev
mailing list