"Harsha Hegde" <harsha.hegde@vonage.com> writes: > I have installed postgres client on an Ubuntu machine. However, when I > try to run 'psql', I get this error message:
> # psql > /usr/lib/postgresql/8.3/bin/psql: symbol lookup error: > /usr/local/lib/libreadline.so.5: undefined symbol: PC
This is a readline problem --- it's missing some underlying library, probably libtermcap.
regards, tom lane
This is library missing error and you have to soft link with libedit.so.2. use below command to soft link with library.
ln -s /lib/libreadline.so.5 /lib/libedit.so.2
Run the psql as a postgres user,like psql -d <database name> -p <port> -U <username>