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 Mohamed Lrhazi <ml...@georgetown.edu> on 2012/09/18 22:02:06 UTC

jar error while trying to build

Hello,

I am trying to build pylucene on a redhat ent 6.1. the make fails with
an error pasted bellow.

Any hints appreciated.

Thanks a lot,
Mohamed.


cd lucene-java-3.6.1/lucene; (/opt/ant/bin/ant ivy-fail ||
/opt/ant/bin/ant ivy-bootstrap)
Buildfile: /home/ml623/pylucene-3.6.1-2/lucene-java-3.6.1/lucene/build.xml

ivy-fail:

BUILD SUCCESSFUL
Total time: 0 seconds
ICU not installed
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.lan
g 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  --build
Illegal option: l
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point]
[-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
...

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
On Wed, 19 Sep 2012, Mohamed Lrhazi wrote:

> just to clarify, I did not think I needed to change anything to the
> Makefile. Making the changes I mention or not, seem to behave exactly
> the same.

You must make changes to the Makefile to remove the comments for the section 
that corresponds to the variables for your OS. A sort of manual 'configure' 
step.

Andi..

>
> Thanks,
> Mohamed.
>
> On Wed, Sep 19, 2012 at 1:46 PM, Mohamed Lrhazi <ml...@georgetown.edu> wrote:
>> On Wed, Sep 19, 2012 at 12:40 PM, Andi Vajda <va...@apache.org> wrote:
>>> Did you follow the instructions at the top of the Makefile ?
>>
>> # Steps to build
>> #   1. Edit the sections below as documented
>> #   2. Edit the JARS variable to add optional contrib modules not defaulted
>> #   3. make
>> #   4. make install
>>
>> I set the var section to:
>>
>> ANT=/opt/ant/bin/ant
>> JAVA_HOME=/usr/java/jdk1.6.0_29
>> PYTHON=$(PREFIX_PYTHON)/bin/python
>> JCC=$(PYTHON) -m jcc --shared
>> NUM_FILES=4
>>
>> and have no need for changing JARS variable, I dont think.
>>
>> make clean
>> make
>>
>> results in the same jar error!
>>
>> Thanks a lot,
>> Mohamed.
>

Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
just to clarify, I did not think I needed to change anything to the
Makefile. Making the changes I mention or not, seem to behave exactly
the same.

Thanks,
Mohamed.

On Wed, Sep 19, 2012 at 1:46 PM, Mohamed Lrhazi <ml...@georgetown.edu> wrote:
> On Wed, Sep 19, 2012 at 12:40 PM, Andi Vajda <va...@apache.org> wrote:
>> Did you follow the instructions at the top of the Makefile ?
>
> # Steps to build
> #   1. Edit the sections below as documented
> #   2. Edit the JARS variable to add optional contrib modules not defaulted
> #   3. make
> #   4. make install
>
> I set the var section to:
>
> ANT=/opt/ant/bin/ant
> JAVA_HOME=/usr/java/jdk1.6.0_29
> PYTHON=$(PREFIX_PYTHON)/bin/python
> JCC=$(PYTHON) -m jcc --shared
> NUM_FILES=4
>
> and have no need for changing JARS variable, I dont think.
>
> make clean
> make
>
> results in the same jar error!
>
> Thanks a lot,
> Mohamed.

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
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..
>>>> 

Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
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



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..
>>>

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
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..
>> 

Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
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

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..
>

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
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..


Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
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

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
On Wed, 19 Sep 2012, Mohamed Lrhazi wrote:

> On Wed, Sep 19, 2012 at 12:40 PM, Andi Vajda <va...@apache.org> wrote:
>> Did you follow the instructions at the top of the Makefile ?
>
> # Steps to build
> #   1. Edit the sections below as documented
> #   2. Edit the JARS variable to add optional contrib modules not defaulted
> #   3. make
> #   4. make install
>
> I set the var section to:
>
> ANT=/opt/ant/bin/ant
> JAVA_HOME=/usr/java/jdk1.6.0_29
> PYTHON=$(PREFIX_PYTHON)/bin/python
> JCC=$(PYTHON) -m jcc --shared
> NUM_FILES=4
>
> and have no need for changing JARS variable, I dont think.
>
> make clean
> make
>
> results in the same jar error!

The Makefile does not use 'jar' but it uses '--jar' in the JCC invocation 
around line 296. I suspect that this line is somehow failing to expand 
correctly. If, for example, $(foreach jar,$(JARS),--jar $(jar)) didn't 
expand into the expected sequence of --jar FILE --jar FILE --jar FILE, then 
this could be the root of the problem.

I've never seen this error myself nor can I reproduce it.

Does the Lucene build part of the build succeed ?

What does 'make print-GENERATE' return ?
It should be a complete and correct command line to invoke jcc on the Lucene 
jar files.

Andi..

Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
On Wed, Sep 19, 2012 at 12:40 PM, Andi Vajda <va...@apache.org> wrote:
> Did you follow the instructions at the top of the Makefile ?

# Steps to build
#   1. Edit the sections below as documented
#   2. Edit the JARS variable to add optional contrib modules not defaulted
#   3. make
#   4. make install

I set the var section to:

ANT=/opt/ant/bin/ant
JAVA_HOME=/usr/java/jdk1.6.0_29
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared
NUM_FILES=4

and have no need for changing JARS variable, I dont think.

make clean
make

results in the same jar error!

Thanks a lot,
Mohamed.

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
On Sep 19, 2012, at 8:20, Mohamed Lrhazi <ml...@georgetown.edu> wrote:

> to make sure, I just re-unpacked the tarball and rerun:
> 
> ml623@cab2b:~/tmp/pylucene-3.6.1-2/ > ANT=/opt/ant/bin/ant make

Did you follow the instructions at the top of the Makefile ?

Andi..

> 
> and got the same error.
> 
> Any idea what could be causing this?
> 
> Thanks a lot,
> Mohamed.
> 
> On Tue, Sep 18, 2012 at 6:39 PM, Andi Vajda <va...@apache.org> wrote:
>> 
>> On Tue, 18 Sep 2012, Mohamed Lrhazi wrote:
>> 
>>> Hello,
>>> 
>>> I am trying to build pylucene on a redhat ent 6.1. the make fails with
>>> an error pasted bellow.
>>> 
>>> Any hints appreciated.
>> 
>> 
>> Your Makefile seems to be broken in a way that --jar somewhere became just
>> jar and it's downhill from there.
>>   jar lucene-java-3.6.1/lucene/build/core/lucene-core-3.6.1.jar --jar
>> 
>> Andi..
>> 
>> 
>>> 
>>> Thanks a lot,
>>> Mohamed.
>>> 
>>> 
>>> cd lucene-java-3.6.1/lucene; (/opt/ant/bin/ant ivy-fail ||
>>> /opt/ant/bin/ant ivy-bootstrap)
>>> Buildfile: /home/ml623/pylucene-3.6.1-2/lucene-java-3.6.1/lucene/build.xml
>>> 
>>> ivy-fail:
>>> 
>>> BUILD SUCCESSFUL
>>> Total time: 0 seconds
>>> ICU not installed
>>> 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.lan
>>> g 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  --build
>>> Illegal option: l
>>> Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point]
>>> [-C dir] files ...
>>> Options:
>>>   -c  create new archive
>>>   -t  list table of contents for archive
>>> ...
>>> 
>> 

Re: jar error while trying to build

Posted by Mohamed Lrhazi <ml...@georgetown.edu>.
to make sure, I just re-unpacked the tarball and rerun:

ml623@cab2b:~/tmp/pylucene-3.6.1-2/ > ANT=/opt/ant/bin/ant make

and got the same error.

Any idea what could be causing this?

Thanks a lot,
Mohamed.

On Tue, Sep 18, 2012 at 6:39 PM, Andi Vajda <va...@apache.org> wrote:
>
> On Tue, 18 Sep 2012, Mohamed Lrhazi wrote:
>
>> Hello,
>>
>> I am trying to build pylucene on a redhat ent 6.1. the make fails with
>> an error pasted bellow.
>>
>> Any hints appreciated.
>
>
> Your Makefile seems to be broken in a way that --jar somewhere became just
> jar and it's downhill from there.
>    jar lucene-java-3.6.1/lucene/build/core/lucene-core-3.6.1.jar --jar
>
> Andi..
>
>
>>
>> Thanks a lot,
>> Mohamed.
>>
>>
>> cd lucene-java-3.6.1/lucene; (/opt/ant/bin/ant ivy-fail ||
>> /opt/ant/bin/ant ivy-bootstrap)
>> Buildfile: /home/ml623/pylucene-3.6.1-2/lucene-java-3.6.1/lucene/build.xml
>>
>> ivy-fail:
>>
>> BUILD SUCCESSFUL
>> Total time: 0 seconds
>> ICU not installed
>> 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.lan
>> g 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  --build
>> Illegal option: l
>> Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point]
>> [-C dir] files ...
>> Options:
>>    -c  create new archive
>>    -t  list table of contents for archive
>> ...
>>
>

Re: jar error while trying to build

Posted by Andi Vajda <va...@apache.org>.
On Tue, 18 Sep 2012, Mohamed Lrhazi wrote:

> Hello,
>
> I am trying to build pylucene on a redhat ent 6.1. the make fails with
> an error pasted bellow.
>
> Any hints appreciated.

Your Makefile seems to be broken in a way that --jar somewhere became 
just jar and it's downhill from there.
    jar lucene-java-3.6.1/lucene/build/core/lucene-core-3.6.1.jar --jar

Andi..

>
> Thanks a lot,
> Mohamed.
>
>
> cd lucene-java-3.6.1/lucene; (/opt/ant/bin/ant ivy-fail ||
> /opt/ant/bin/ant ivy-bootstrap)
> Buildfile: /home/ml623/pylucene-3.6.1-2/lucene-java-3.6.1/lucene/build.xml
>
> ivy-fail:
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
> ICU not installed
> 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.lan
> g 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  --build
> Illegal option: l
> Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point]
> [-C dir] files ...
> Options:
>    -c  create new archive
>    -t  list table of contents for archive
> ...
>