From: Bruce Momjian <bruce@momjian.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, 4 Jun 2021 18:38:37 -0400
Message-ID: <20210604223837.GA7689@momjian.us> (raw)
In-Reply-To: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com>
References: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com>
On Fri, Jun 4, 2021 at 06:21:02PM -0400, rob stan wrote:
> Hello all,
> 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
>
> OS :Debian GNU/Linux 9
>
> I tried setting it didn't help; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/
> lib/postgresql/9.6/lib
>
> Can anyone please help me?
Uh, your binary is at /usr/lib/9.6/bin/psql but you are specifying the
LD path as /usr/lib/postgresql/9.6/lib. Maybe try:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/9.6/lib
The problem is clearly using the wrong version of the libpq libary.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
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: bruce@momjian.us, aslicokay@gmail.com
Subject: Re: symbol lookup error: /usr/lib/9.6/bin/psql: undefined symbol: PQsetErrorContextVisibility
In-Reply-To: <20210604223837.GA7689@momjian.us>
References: <CAGADRUFA0StNYXKFDUoCeuOzerM6f7fJWDxCDPoq6Oy0ue+2cA@mail.gmail.com> <20210604223837.GA7689@momjian.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