Re: contrib - fuzzystrmatch installation issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: contrib - fuzzystrmatch installation issue
Дата
Msg-id 16346.1215378731@sss.pgh.pa.us
обсуждение исходный текст
Ответ на contrib - fuzzystrmatch installation issue  ("Kenaniah Cerny" <kenaniah@gmail.com>)
Ответы Re: contrib - fuzzystrmatch installation issue  (Joe Conway <mail@joeconway.com>)
Список pgsql-ports
"Kenaniah Cerny" <kenaniah@gmail.com> writes:
> I am running Postgres 8.3.3 on a CentOS box and I had a few issues when
> trying to install the fuzzystrmatch library. The library seemed to compile
> and make install correctly, but when I ran the sql scripts to add the
> functions to a database, I came up with this issue:

> # psql -d template1 -U postgres -f fuzzystrmatch.sql
> SET
> CREATE FUNCTION
> CREATE FUNCTION
> CREATE FUNCTION
> CREATE FUNCTION
> psql:fuzzystrmatch.sql:24: ERROR:  could not find function "difference" in
> file "/usr/lib/pgsql/fuzzystrmatch.so"
> psql:fuzzystrmatch.sql:28: ERROR:  could not find function "dmetaphone" in
> file "/usr/lib/pgsql/fuzzystrmatch.so"
> psql:fuzzystrmatch.sql:32: ERROR:  could not find function "dmetaphone_alt"
> in file "/usr/lib/pgsql/fuzzystrmatch.so"

I'm suspicious that /usr/lib/pgsql/fuzzystrmatch.so is actually the 7.4
version of that module (which is what shipped in RHEL4 to begin with,
and which would've lacked exactly those three functions).  However a
hole in this theory is that an 8.3 server should've refused to load
a 7.4 extension module at all.  Anyway, double check versions,
installation locations, etc.  A self-configured Postgres installation
would not default to installing into /usr/lib/pgsql, so it certainly
seems possible that that file isn't your newly built version.

Another thing that seems pretty odd is that the above complains about
difference(), which *is* present in the .so according to nm.

BTW, why are you compiling fuzzystrmatch for yourself at all, instead
of just installing the postgresql-contrib RPM?

            regards, tom lane

В списке pgsql-ports по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Fwd: 8.3.3 compile fails on Mac OS X 10.5.2
Следующее
От: Joe Conway
Дата:
Сообщение: Re: contrib - fuzzystrmatch installation issue