Re: Re: psql error: psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams - Mailing list pgsql-general

From Tom Lane
Subject Re: Re: psql error: psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams
Date
Msg-id 3626.1325097266@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql error: psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams  (hosuresh <suri.hosur@gmail.com>)
Responses Re: psql error: psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams
List pgsql-general
hosuresh <suri.hosur@gmail.com> writes:
> and for $ ldd $(which psql) command it displaying like

>         -bash-4.1$ ldd $(which psql)
>         linux-gate.so.1 =>  (0x00112000)
>         libpq.so.5 => /usr/lib/libpq.so.5 (0x005b5000)

Yeah, so it's linking to the libpq in /usr/lib, which is presumably the
one supplied by the Red-Hat-provided
postgresql-libs-8.4.9-1.el6_1.1.i686 package, which is not going to have
PQconnectdbParams because that was added in 9.0.

You could try removing the postgresql-libs-8.4.9-1.el6_1.1.i686 RPM,
but the odds are that isn't going to work because of other packages
depending on it (in which case forcing the removal would be a bad idea).
And I'm not convinced that would fix the problem anyway.

I think you could make it work by setting LD_LIBRARY_PATH (not
DYLD_LIBRARY_PATH, that's a Mac OS X ism) when running the 9.0 psql.
I'm surprised though that Devrim hasn't put in an rpath setting to make
that happen automatically.

            regards, tom lane

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: PostgreSQL 9.1 pg_dump setval() sets wrong value
Next
From: Adrian Klaver
Date:
Subject: Re: PostgreSQL 9.1 pg_dump setval() sets wrong value