Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpIm3-0005It-GZ for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 22:58:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lpIm2-0002R9-BZ for pgsql-general@arkaria.postgresql.org; Fri, 04 Jun 2021 22:58:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpIm2-0002QV-2T for pgsql-general@lists.postgresql.org; Fri, 04 Jun 2021 22:58:42 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpIlv-00032V-R6 for pgsql-general@postgresql.org; Fri, 04 Jun 2021 22:58:41 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lpISb-0001kZ-3u; Fri, 04 Jun 2021 18:38:37 -0400 Date: Fri, 4 Jun 2021 18:38:37 -0400 From: Bruce Momjian To: rob stan Cc: pgsql-general@postgresql.org Subject: Re: symbol lookup error: /usr/lib/9.6/bin/psql: undefined symbol: PQsetErrorContextVisibility Message-ID: <20210604223837.GA7689@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.