Re: psql undefined symbol error on Ubuntu - Mailing list pgsql-novice

From raghu ram
Subject Re: psql undefined symbol error on Ubuntu
Date
Msg-id d331f2ee0907082048q22c21bd5m5395e1114c9c2dc4@mail.gmail.com
Whole thread Raw
In response to Re: psql undefined symbol error on Ubuntu  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql undefined symbol error on Ubuntu  ("Harsha Hegde" <harsha.hegde@vonage.com>)
List pgsql-novice


On Thu, Jul 9, 2009 at 3:23 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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>

Thanks & Regards,
Raghu Ram


--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

pgsql-novice by date:

Previous
From: raghu ram
Date:
Subject: Re: cannot locate where dataase files are stored
Next
From: stuart@stuartbishop.net
Date:
Subject: Re: psql undefined symbol error on Ubuntu