[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-general
Subject:    Re: psql command failing with error "undefined symbol: PQhostaddr"
From:       Narendra katlamudi <narendra_katlamudi () yahoo ! co ! in>
Date:       2021-12-29 8:31:32
Message-ID: 1789328895.1847764.1640766692783 () mail ! yahoo ! com
[Download RAW message or body]

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
  


[Attachment #3 (text/html)]

<html><head></head><body><div class="ydp27042fc1yahoo-style-wrap" \
style="font-family:Helvetica Neue, Helvetica, Arial, \
sans-serif;font-size:16px;"><div></div>  <div dir="ltr" data-setdir="false">Hey \
Team,</div><div dir="ltr" data-setdir="false"><br>Thanks for quick responses. But \
yeah, seems on my system Libpq.so* files were not present in the usual library \
path.&nbsp;</div><div dir="ltr" data-setdir="false">After setting LD_LIBRARY_PATH to \
consider the location about libpg.so*, the psql&nbsp; command started \
working.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" \
data-setdir="false">thanks,</div><div><br></div>  
        </div><div id="ydpbcdc2ff2yahoo_quoted_1211868504" \
                class="ydpbcdc2ff2yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, \
sans-serif;font-size:13px;color:#26282a;">  
                <div>
                    On Tuesday, 28 December, 2021, 06:23:30 pm IST, Pavel Stehule \
&lt;pavel.stehule@gmail.com&gt; wrote:  </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydpbcdc2ff2yiv1772129889"><div><div \
dir="ltr"><div>Hi<br clear="none"></div><br clear="none"><div \
class="ydpbcdc2ff2yiv1772129889gmail_quote"><div dir="ltr" \
class="ydpbcdc2ff2yiv1772129889gmail_attr">út 28. 12. 2021 v&nbsp;13:29 odesílatel \
Narendra katlamudi &lt;<a shape="rect" href="mailto:narendra_katlamudi@yahoo.co.in" \
rel="nofollow" target="_blank">narendra_katlamudi@yahoo.co.in</a>&gt; napsal:<br \
clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex;" \
class="ydpbcdc2ff2yiv1772129889gmail_quote"><div><div style="font-family:Helvetica \
Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr">Hi \
Team</div><div><br clear="none"></div><div dir="ltr">When I use psql to connect a pg \
server, I am getting below error. Any solution/pointers?<br clear="none"></div><div \
dir="ltr"><span><span style="color:rgb(0,0,0);font-family:Helvetica, Arial, \
sans-serif;font-size:16px;">I have pg versions 11,12,13 installed on my \
system.</span></span><br clear="none"></div><div dir="ltr"><br \
clear="none"></div><div dir="ltr">/usr/lib/postgresql/13/bin/psql: symbol lookup \
error: /usr/lib/postgresql/13/bin/psql: <b>undefined symbol: \
PQhostaddr</b></div></div></div></blockquote><div><br clear="none"></div><div>Looks \
like a bad (too old) version of libpq library.<br clear="none"></div><div><br \
clear="none"></div><div><a shape="rect" \
href="https://stackoverflow.com/questions/28123212/postgres-9-4-0-undefined-symbol-pqhostaddr" \
rel="nofollow" target="_blank">https://stackoverflow.com/questions/28123212/postgres-9-4-0-undefined-symbol-pqhostaddr</a></div><div><br \
clear="none"></div><div>Regards</div><div><br clear="none"></div><div>Pavel</div><div \
id="ydpbcdc2ff2yiv1772129889yqtfd35569" \
class="ydpbcdc2ff2yiv1772129889yqt8172603508"><div><br clear="none"> \
</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex;" \
class="ydpbcdc2ff2yiv1772129889gmail_quote"><div><div style="font-family:Helvetica \
Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div dir="ltr"><br \
clear="none"></div><div dir="ltr"><br clear="none"></div><div \
dir="ltr">thanks,</div><div dir="ltr">Narendra \
K</div></div></div></blockquote></div></div></div><div \
id="ydpbcdc2ff2yiv1772129889yqtfd13297" \
class="ydpbcdc2ff2yiv1772129889yqt8172603508"> </div></div></div></div>
            </div>
        </div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic