Re: help with tsearch2 stem compile

Lists: pgsql-general
From: marcelo Cortez <jmdc_marcelo(at)yahoo(dot)com(dot)ar>
To: pgsql-general(at)postgresql(dot)org
Subject: help with tsearch2 stem compile
Date: 2007-07-17 17:01:56
Message-ID: 865505.41936.qm@web32102.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

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


From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: marcelo Cortez <jmdc_marcelo(at)yahoo(dot)com(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: help with tsearch2 stem compile
Date: 2007-07-21 23:37:07
Message-ID: Pine.LNX.4.64.0707220336060.18739@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83