I have installed postgres9.4 on Ubuntu
I used to be able to run psql just fine.
symbol lookup error: /usr/lib/postgressql/9.4/bin/psql: undefined symbol: PQhostaddr
As per Craig's comment I did a little digging.
I confirmed using ldd that PQhostaddr is the only exception.
I also tried this:
$ sudo ldconfig -v | grep libpq
/sbin/ldconfig.real: Path /lib/x86_64-linux-gnu' given more than once
/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path
/sbin/ldconfig.real: /lib/x86_64-linux-gnu/ld-2.19.so is the dynamic linker, ignoring
libpq.so.5 -> libpq.so.5.7
I can however only see the directories in each place once. (not repeated)
I also can't find libpq
So generally not doing amazingly with this. I would have assumed there was a method of updating libpq.so.5.7
Am I barking up the wrong tree? (Or just barking mad)
libpq
being found on the library path (/etc/ld.so.conf
andLD_LIBRARY_PATH
) is older than the version in 9.4. Useldd /usr/lib/postgressql/9.4/bin/psql
to find out which version is being linked to. – Craig Ringer