From: Tom Lane <tgl@sss.pgh.pa.us>
To: rob stan <aslicokay@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: symbol lookup error: /usr/lib/9.6/bin/psql: undefined symbol: PQsetErrorContextVisibility
Date: Fri, 04 Jun 2021 18:44:32 -0400
Message-ID: <449616.1622846672@sss.pgh.pa.us> (raw)
In-Reply-To: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com>
References: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com>
rob stan <aslicokay@gmail.com> writes:
> I have a problem with connecting database via psql;/usr/lib/9.6/bin/psql:
> symbol lookup error: /usr/lib/9.6/bin/psql: undefined symbol:
> PQsetErrorContextVisibility
Apparently psql is linking to a pre-9.6 copy of libpq.so. You could
confirm that with
ldd /usr/lib/9.6/bin/psql
> I tried setting it didn't help; export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/postgresql/9.6/lib
(1) Are you sure there's a more up-to-date libpq.so there?
That path doesn't seem to square with where you say psql is.
(2) Possibly you need to put the 9.6 directory first not last.
(3) If that still doesn't work, you need to configure the system's
dynamic linker to look there. You really want to do that anyway,
as messing with LD_LIBRARY_PATH all the time is no fun.
See "man ldconfig".
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, aslicokay@gmail.com
Subject: Re: symbol lookup error: /usr/lib/9.6/bin/psql: undefined symbol: PQsetErrorContextVisibility
In-Reply-To: <449616.1622846672@sss.pgh.pa.us>
References: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com> <449616.1622846672@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox