On Sep 20, 2012, at 1:14, Mohamed Lrhazi <ml...@georgetown.edu> wrote:
> Thank you so much Andi. > > This is what ended up working for me, on Red Hat Enterprise Linux > Server release 6.1: > > PREFIX_PYTHON=/usr > ANT=/opt/ant/bin/ant > JAVA_HOME=/usr/java/jdk1.6.0_29 > PYTHON=$(PREFIX_PYTHON)/bin/python > JCC=$(PYTHON) -m jcc.__main__ > NUM_FILES=200 Thank you for sharing your config. NUM_FILES=200 is quite high, 6 would probably be faster to build. Andi.. > > > > On Wed, Sep 19, 2012 at 3:46 PM, Andi Vajda <va...@apache.org> wrote: >> >> On Sep 19, 2012, at 12:43, Mohamed Lrhazi <ml...@georgetown.edu> wrote: >> >>> Oh, I was missing this var: PREFIX_PYTHON=/usr >>> >>> Now I am moving a bit further and failing at: >>> >>> /usr/bin/python: jcc is a package and cannot be directly executed >>> make: *** [compile] Error 1 >> >> Your python invocation of jcc is wrong. Depending on the version, you must >> use the right syntax. There are plenty of examples in the Makefile for many >> python versions. >> >> Andi.. >> >>> what else did I miss :) >>> >>> Thanks a lot, >>> Mohamed. >>> >>> >>> On Wed, Sep 19, 2012 at 3:32 PM, Andi Vajda <va...@apache.org> wrote: >>>> >>>> On Sep 19, 2012, at 12:29, Mohamed Lrhazi <ml...@georgetown.edu> wrote: >>>> >>>>> On Wed, Sep 19, 2012 at 2:28 PM, Andi Vajda <va...@apache.org> wrote: >>>>>> What does 'make print-GENERATE' return ? >>>>> >>>>> I'll try to dig more into the Makefile world... been a long time. >>>>> >>>>> ml623@cab2b:~/tmp/pylucene-3.6.1-2/ > make print-GENERATE >>>>> which: no icupkg in >>>>> (/opt/ActivePython-2.6/bin:/usr/sbin:/sbin:/opt/ruby-enterprise/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ml623//bin:/usr/X11R6/bin:/usr/loca/bin) >>>>> GENERATE = /bin/python -m jcc --shared --jar >>>>> lucene-java-3.6.1/lucene/build/core/lucene-core-3.6.1.jar --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/analyzers/common/lucene-analyzers-3.6.1.jar >>>>> --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/memory/lucene-memory-3.6.1.jar >>>>> --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/highlighter/lucene-highlighter-3.6.1.jar >>>>> --jar build/jar/extensions.jar --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/queries/lucene-queries-3.6.1.jar >>>>> --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/grouping/lucene-grouping-3.6.1.jar >>>>> --jar lucene-java-3.6.1/lucene/build/contrib/join/lucene-join-3.6.1.jar >>>>> --jar lucene-java-3.6.1/lucene/build/contrib/facet/lucene-facet-3.6.1.jar >>>>> --jar >>>>> lucene-java-3.6.1/lucene/build/contrib/spellchecker/lucene-spellchecker-3.6.1.jar >>>>> --package java.lang java.lang.System java.lang.Runtime >>>>> java.lang.IllegalStateException java.lang.IndexOutOfBoundsException >>>>> --package java.util java.util.Arrays java.util.HashMap >>>>> java.util.HashSet java.util.NoSuchElementException >>>>> java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator >>>>> --package java.util.regex --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.queryParser.CharStream --exclude >>>>> org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude >>>>> org.apache.regexp.RegexpTunnel --exclude >>>>> org.apache.lucene.analysis.cn.smart.AnalyzerProfile --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; --sequence >>>>> java.util.AbstractList size:()I get:(I)Ljava/lang/Object; --rename >>>>> org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer >>>>> --rename org.apache.lucene.search.highlight.Scorer=HighlighterScorer >>>>> --rename org.apache.lucene.search.spell.Dictionary=SpellDictionary >>>>> --rename org.apache.lucene.search.suggest.fst.Sort=SuggestSort >>>>> --rename org.apache.lucene.store.DataInput=StoreDataInput --rename >>>>> org.apache.lucene.store.DataOutput=StoreDataOutput --rename >>>>> org.tartarus.snowball.ext.DutchStemmer=DutchPorterStemmer --rename >>>>> org.tartarus.snowball.ext.FrenchStemmer=FrenchPorterStemmer --rename >>>>> org.tartarus.snowball.ext.GermanStemmer=GermanPorterStemmer --rename >>>>> org.tartarus.snowball.ext.PortugueseStemmer=PortuguesePorterStemmer >>>>> --version 3.6.1 --module python/collections.py --module >>>>> python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py >>>>> --module python/ICUTransformFilter.py --files 4 >>>> >>>> This looks correct to me. >>>> What happens when paste this complete command into your shell ? >>>> >>>> Andi.. >>>>