> -----Original Message-----
> From: Andi Vajda [mailto:va...@apache.org]
> Sent: Saturday, 9 October 2010 11:04 AM
> To: pylucene-dev@lucene.apache.org
> Subject: Re: Trouble installing pyLucene on FreeBSD
> 
> 
> On Oct 8, 2010, at 17:37, "Gav..." <ga...@16degrees.com.au> wrote:
> 
> > Hi,
> >
> > Using FreeBSD 8.1-RC2 Im having trouble installing.
> >
> > I first tried to install using the ports system and
> > /usr/ports/textproc/py-lucene
> >
> > When that failed I installed from source, compiled jcc and then
> > pylucene,
> > after some
> > fiddling of source to s/freebsd7/freebsd8/g I ended up at the same
> > failure
> > as when
> > installing using the port.
> >
> > Using Python 2.6 and Ant 1.7, heres the error:
> 
> What version of java are you using ?
> Whose JDK ?

Hi Andi,

Seems to be 2 versions on there.

the default;

[gmcdon...@tyr ~]$ java -version
java version "1.6.0_03-p4"
Java(TM) SE Runtime Environment (build
1.6.0_03-p4-root_07_sep_2010_08_40-b00)
Java HotSpot(TM) 64-Bit Server VM (build
1.6.0_03-p4-root_07_sep_2010_08_40-b00, mixed mode)

Which could be the openjdk version

and there is also the sun version:

[gmcdon...@tyr ~]$ /usr/local/diablo-jdk1.6.0/jre/bin/java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

during the source install, I pointed it to the /usr/local/diablo-jdk1.6.0
(sun) version.

Thanks

Gav...


> 
> Andi..
> 
> 
> >
> > /usr/local/bin/python -m jcc.__main__ --jar
> > lucene-java-3.0.2/build/lucene-core-3.0.2.jar --jar
> > lucene-java-3.0.2/build/contrib/snowball/lucene-snowball-3.0.2.jar --
> > jar
> > lucene-java-3.0.2/build/contrib/analyzers/common/lucene-
> > analyzers-3.0.2.jar
> > --jar lucene-java-3.0.2/build/contrib/regex/lucene-regex-3.0.2.jar --
> > jar
> > lucene-java-3.0.2/build/contrib/memory/lucene-memory-3.0.2.jar --jar
> > lucene-java-3.0.2/build/contrib/highlighter/lucene-
> > highlighter-3.0.2.jar
> > --jar lucene-java-3.0.2/build/contrib/queries/lucene-
> > queries-3.0.2.jar --jar
> > build/jar/extensions.jar  --package java.lang java.lang.System
> > java.lang.Runtime --package java.util java.util.Arrays
> > java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator
> > --package java.io java.io.StringReader java.io.InputStreamReader
> > java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token
> > --exclude org.apache.lucene.queryParser.TokenMgrError --exclude
> > org.apache.lucene.queryParser.QueryParserTokenManager --exclude
> > org.apache.lucene.queryParser.ParseException --exclude
> > org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude
> > org.apache.regexp.RegexpTunnel --python lucene --mapping
> > org.apache.lucene.document.Document
> > 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
> > java.util.Properties
> > 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --rename
> > org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer
> > --version 3.0.2 --module python/collections.py --files 2 --build
> > Exception in thread "main" java.lang.NoSuchMethodException:
> > java.lang.Object.compareTo(java.lang.Object)
> >        at java.lang.Class.getMethod(Class.java:1605)
> > Traceback (most recent call last):
> >  File "/usr/local/lib/python2.6/runpy.py", line 122, in
> > _run_module_as_main
> >    "__main__", fname, loader, pkg_name)
> >  File "/usr/local/lib/python2.6/runpy.py", line 34, in _run_code
> >    exec code in run_globals
> >  File
> > "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1-
> > RC2-amd64.
> > egg/jcc/__main__.py", line 102, in <module>
> >    cpp.jcc(sys.argv)
> >  File
> > "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1-
> > RC2-amd64.
> > egg/jcc/cpp.py", line 565, in jcc
> >    declares, typeset)
> >  File
> > "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1-
> > RC2-amd64.
> > egg/jcc/cpp.py", line 1014, in code
> >    superMethod = find_method(superCls, methodName, params)
> >  File
> > "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1-
> > RC2-amd64.
> > egg/jcc/cpp.py", line 218, in find_method
> >    if (e.getJavaException().getClass().getName() ==
> > 'java.lang.NoSuchMethodException'):
> >  File
> > "/usr/local/lib/python2.6/site-packages/JCC-2.6-py2.6-freebsd-8.1-
> > RC2-amd64.
> > egg/jcc/cpp.py", line 51, in getJavaException
> >    return self.args[0]
> > IndexError: tuple index out of range
> > gmake: *** [compile] Error 255
> >
> > Any ideas please?
> >
> > Gav...
> >


Reply via email to