From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Kenaniah Cerny" <kenaniah(at)gmail(dot)com> |
Cc: | pgsql-ports(at)postgresql(dot)org |
Subject: | Re: contrib - fuzzystrmatch installation issue |
Date: | 2008-07-06 21:12:11 |
Message-ID: | 16346.1215378731@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
"Kenaniah Cerny" <kenaniah(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2008-07-06 21:16:06 | Re: contrib - fuzzystrmatch installation issue |
Previous Message | Bruce Momjian | 2008-07-05 02:56:46 | Re: Fwd: 8.3.3 compile fails on Mac OS X 10.5.2 |