psql error: cannot open libpq.so.3

Started by phil campaigneover 22 years ago2 messagesgeneral
Jump to latest
#1phil campaigne
pcampaigne@charter.net

Thanks Tom,
when I go down all files linked to libpq.so.3 end with a "statically
linked" comment. I assume this is the desired result.

However, I did find another libpq.so.3 in a different directory. When I
ldd it I get "no such file or directory. Maybe the original
installation by rpm put it there first. Could this problem be the
result of upgrading a rpm installation with a source upgrade which put
it in another directory, thus confusing psql?

thanks,
Phil

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: phil campaigne (#1)
Re: psql error: cannot open libpq.so.3

Phil Campaigne <pcampaigne@charter.net> writes:

However, I did find another libpq.so.3 in a different directory. When I
ldd it I get "no such file or directory.

Hmm, maybe that's the one that's being found when psql is started?
Seems like you need to look at exactly what search path is being
used (check LD_LIBRARY_PATH, /etc/ld.so.conf, or whatever controls
this on your system). Another possibility is that ldconfig needs
to be run again to update ld.so.cache.

regards, tom lane