Skip site navigation (1) Skip section navigation (2)

Re: psql undefined symbol error on Ubuntu

From: raghu ram <raghuchennuru(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Harsha Hegde <harsha(dot)hegde(at)vonage(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: psql undefined symbol error on Ubuntu
Date: 2009-07-09 03:48:07
Message-ID: d331f2ee0907082048q22c21bd5m5395e1114c9c2dc4@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Thu, Jul 9, 2009 at 3:23 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> "Harsha Hegde" <harsha(dot)hegde(at)vonage(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-novice
>

In response to

Responses

pgsql-novice by date

Next:From: stuartDate: 2009-07-09 08:06:40
Subject: Re: psql undefined symbol error on Ubuntu
Previous:From: raghu ramDate: 2009-07-09 03:41:08
Subject: Re: cannot locate where dataase files are stored

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group