pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: psql command failing with error "undefined symbol: PQhostaddr"
Date: Wed, 29 Dec 2021 08:31:32 +0000 (UTC)
Message-ID: <1789328895.1847764.1640766692783@mail.yahoo.com> (raw)
In-Reply-To: <CAFj8pRD4SeL=pjOvHDHv8sNYHPfDQN3QRGevpsNV_pq6Uq3xnQ@mail.gmail.com>
References: <417257689.1658868.1640694552107.ref@mail.yahoo.com>
	<417257689.1658868.1640694552107@mail.yahoo.com>
	<CAFj8pRD4SeL=pjOvHDHv8sNYHPfDQN3QRGevpsNV_pq6Uq3xnQ@mail.gmail.com>

 Hey Team,
Thanks for quick responses. But yeah, seems on my system Libpq.so* files were not present in the usual library path. After setting LD_LIBRARY_PATH to consider the location about libpg.so*, the psql  command started working.
thanks,
    On Tuesday, 28 December, 2021, 06:23:30 pm IST, Pavel Stehule <pavel.stehule@gmail.com> wrote:  
 
 Hi

út 28. 12. 2021 v 13:29 odesílatel Narendra katlamudi <narendra_katlamudi@yahoo.co.in> napsal:

Hi Team
When I use psql to connect a pg server, I am getting below error. Any solution/pointers?
I have pg versions 11,12,13 installed on my system.

/usr/lib/postgresql/13/bin/psql: symbol lookup error: /usr/lib/postgresql/13/bin/psql: undefined symbol: PQhostaddr

Looks like a bad (too old) version of libpq library.

https://stackoverflow.com/questions/28123212/postgres-9-4-0-undefined-symbol-pqhostaddr
Regards
Pavel
 


thanks,Narendra K
  

view thread (5+ messages)

Message-ID: <1789328895.1847764.1640766692783@mail.yahoo.com>
Permalink:  ../1789328895.1847764.1640766692783@mail.yahoo.com/
Also on:    postgresql.org/message-id/1789328895.1847764.1640766692783@mail.yahoo.com

 · 

reply

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: narendra_katlamudi@yahoo.co.in, pavel.stehule@gmail.com
  Subject: Re: psql command failing with error "undefined symbol: PQhostaddr"
  In-Reply-To: <1789328895.1847764.1640766692783@mail.yahoo.com>
  References: <417257689.1658868.1640694552107.ref@mail.yahoo.com> <417257689.1658868.1640694552107@mail.yahoo.com> <CAFj8pRD4SeL=pjOvHDHv8sNYHPfDQN3QRGevpsNV_pq6Uq3xnQ@mail.gmail.com> <1789328895.1847764.1640766692783@mail.yahoo.com>

* 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