psql command failing with error "undefined symbol: PQhostaddr" - Mailing list pgsql-general

From Narendra katlamudi
Subject psql command failing with error "undefined symbol: PQhostaddr"
Date
Msg-id 417257689.1658868.1640694552107@mail.yahoo.com
Whole thread Raw
Responses Re: psql command failing with error "undefined symbol: PQhostaddr"  (Osvaldo Kussama <osvaldo.kussama@gmail.com>)
Re: psql command failing with error "undefined symbol: PQhostaddr"  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: psql command failing with error "undefined symbol: PQhostaddr"  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Avi Weinberg
Date:
Subject: Logical Replication - One table 8 minutes, Identical Two Tables 28 Minutes (Expected 16 Minutes)
Next
From: Osvaldo Kussama
Date:
Subject: Re: psql command failing with error "undefined symbol: PQhostaddr"