pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql command failing with error "undefined symbol: PQhostaddr"
5+ messages / 4 participants
[nested] [flat]

* psql command failing with error "undefined symbol: PQhostaddr"
@ 2021-12-28 12:29  Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
  0 siblings, 3 replies; 5+ messages in thread

From: Narendra katlamudi @ 2021-12-28 12:29 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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

thanks,Narendra K

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: psql command failing with error "undefined symbol: PQhostaddr"
@ 2021-12-28 12:44  Osvaldo Kussama <osvaldo.kussama@gmail.com>
  parent: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
  2 siblings, 0 replies; 5+ messages in thread

From: Osvaldo Kussama @ 2021-12-28 12:44 UTC (permalink / raw)
  To: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

2021-12-28 9:29 GMT-03:00, Narendra katlamudi <narendra_katlamudi@yahoo.co.in>:
> 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
>
> thanks,Narendra K


Perhaps a typo?
PQHOSTADDR or PGHOSTADDR?





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: psql command failing with error "undefined symbol: PQhostaddr"
@ 2021-12-28 12:52  Pavel Stehule <pavel.stehule@gmail.com>
  parent: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
  2 siblings, 1 reply; 5+ messages in thread

From: Pavel Stehule @ 2021-12-28 12:52 UTC (permalink / raw)
  To: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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
>

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: psql command failing with error "undefined symbol: PQhostaddr"
@ 2021-12-28 15:54  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
  2 siblings, 0 replies; 5+ messages in thread

From: Adrian Klaver @ 2021-12-28 15:54 UTC (permalink / raw)
  To: Narendra katlamudi <narendra_katlamudi@yahoo.co.in>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On 12/28/21 04:29, Narendra katlamudi wrote:
> 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.

OS and version?

How where the Postgres versions installed?

> 
> /usr/lib/postgresql/13/bin/psql: symbol lookup error: 
> /usr/lib/postgresql/13/bin/psql: *undefined symbol: PQhostaddr*
> 
> thanks,
> Narendra K


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: psql command failing with error "undefined symbol: PQhostaddr"
@ 2021-12-29 08:31  Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
  parent: Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Narendra katlamudi @ 2021-12-29 08:31 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

 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
  

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-12-29 08:31 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 12:29 psql command failing with error "undefined symbol: PQhostaddr" Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
2021-12-28 12:44 ` Osvaldo Kussama <osvaldo.kussama@gmail.com>
2021-12-28 12:52 ` Pavel Stehule <pavel.stehule@gmail.com>
2021-12-29 08:31   ` Narendra katlamudi <narendra_katlamudi@yahoo.co.in>
2021-12-28 15:54 ` Adrian Klaver <adrian.klaver@aklaver.com>

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