Thread: help with tsearch2 stem compile

help with tsearch2 stem compile

From
marcelo Cortez
Date:
hi all

 i'm using postgresql 8.2.4 and install tsearch2 , but
i need spanish idiom.
following
http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/README.gendict
and downloading
http://snowball.tartarus.org/algorithms/spanish/stemmer.html
stem.c and stem.h

 ./config.sh -n pt -s -p spanish_ISO_8859_1   -v
-C'Snowball stemmer for spanish'
Dictname: 'pt'
Snowball stemmer: yes
Has init method: yes
Function prefix: spanish_ISO_8859_1
Source files: stem.c
Header files: stem.h
Object files: stem.o dict_snowball.o
Comment: 'Snowball stemmer for spanish'
Directory: ../../dict_pt
Build directory...  ok
Build Makefile...  ok
Build dict_pt.sql.in...  ok
Copy source and header files...  ok
Build sub-include header...  ok
Build Snowball stemmer...  ok
Build README.pt...  ok
All is done

and

 cd ../../dict_pt/
make
.
.
.
.
 stem.c: In function 'spanish_ISO_8859_1_close_env':
stem.c:1092: error: too many arguments to function
'SN_close_env'
make: *** [stem.o] Error 1

any clue?
best regards

 mdc






__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas


Re: help with tsearch2 stem compile

From
Oleg Bartunov
Date:
try patch from http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/
which updates snowball api

Oleg
On Tue, 17 Jul 2007, marcelo Cortez wrote:

> hi all
>
> i'm using postgresql 8.2.4 and install tsearch2 , but
> i need spanish idiom.
> following
> http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/README.gendict
> and downloading
> http://snowball.tartarus.org/algorithms/spanish/stemmer.html
> stem.c and stem.h
>
> ./config.sh -n pt -s -p spanish_ISO_8859_1   -v
> -C'Snowball stemmer for spanish'
> Dictname: 'pt'
> Snowball stemmer: yes
> Has init method: yes
> Function prefix: spanish_ISO_8859_1
> Source files: stem.c
> Header files: stem.h
> Object files: stem.o dict_snowball.o
> Comment: 'Snowball stemmer for spanish'
> Directory: ../../dict_pt
> Build directory...  ok
> Build Makefile...  ok
> Build dict_pt.sql.in...  ok
> Copy source and header files...  ok
> Build sub-include header...  ok
> Build Snowball stemmer...  ok
> Build README.pt...  ok
> All is done
>
> and
>
> cd ../../dict_pt/
> make
> .
> .
> .
> .
> stem.c: In function 'spanish_ISO_8859_1_close_env':
> stem.c:1092: error: too many arguments to function
> 'SN_close_env'
> make: *** [stem.o] Error 1
>
> any clue?
> best regards
>
> mdc
>
>
>
>
>
>
> __________________________________________________
> Pregunt?. Respond?. Descubr?.
> Todo lo que quer?as saber, y lo que ni imaginabas,
> est? en Yahoo! Respuestas (Beta).
> ?Probalo ya!
> http://www.yahoo.com.ar/respuestas
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>               http://archives.postgresql.org/
>

     Regards,
         Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83