Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 15783 invoked from network); 9 Oct 2010 01:32:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 01:32:21 -0000 Received: (qmail 13537 invoked by uid 500); 9 Oct 2010 01:32:21 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 13512 invoked by uid 500); 9 Oct 2010 01:32:21 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 13504 invoked by uid 99); 9 Oct 2010 01:32:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 01:32:21 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 01:32:15 +0000 Received: from [192.168.0.7] ([192.168.0.7]) (authenticated bits=0) by ovaltofu.org (8.14.4/8.14.4) with ESMTP id o991VjRr008787 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 8 Oct 2010 18:31:48 -0700 (PDT) Message-Id: From: Andi Vajda To: "pylucene-dev@lucene.apache.org" In-Reply-To: <007d01cb6750$349efb70$9ddcf250$@com.au> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (7E18) Mime-Version: 1.0 (iPod Mail 7E18) Subject: Re: Trouble installing pyLucene on FreeBSD Date: Fri, 8 Oct 2010 18:32:07 -0700 References: <007701cb674a$2a7e9250$7f7bb6f0$@com.au> <7F450535-08DD-4618-827F-174853022327@apache.org> <007d01cb6750$349efb70$9ddcf250$@com.au> X-Virus-Checked: Checked by ClamAV on apache.org On Oct 8, 2010, at 18:20, "Gav..." wrote: > > >> -----Original Message----- >> From: Andi Vajda [mailto:vajda@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..." 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; > > [gmcdonald@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: > > [gmcdonald@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. Be sure to not mix java installs. Be sure to use the header files and libs (when building jcc) that correspond to the java binaries you intend to use. I don't have a freebsd setup, so no experience on that plarform. I know that there are a few freebsd users who may read this list. Let's hope they chime in. Andi.. > > 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 >>> 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... >>> >