Re: psql error:cannot open libpq.so.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pcampaigne(at)charter(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql error:cannot open libpq.so.3
Date: 2003-09-30 04:42:59
Message-ID: 16131.1064896979@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phil Campaigne <pcampaigne(at)charter(dot)net> writes:
> -bash-2.05b$ psql -h localhost -U postgres nba
> psql: error while loading shared libraries: libpq.so.3: cannot open
> shared object file: No such file or directory

This could mean either that libpq.so itself is not where your dynamic
linker will look for it, or that some library it depends on (libssl
is a possible example) is not where your dynamic linker will look for
it.

Try first "ldd /path/to/psql" to verify that psql's reference to
libpq.so is being resolved sanely. If so, do ldd on libpq.so to see how
its references are resolved (or not). If necessary, check the
referenced libraries, etc, till you find what's not resolved.

Once you know where the problem is, install the needed library, or
update your ldconfig configuration so it can find that library.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2003-09-30 04:55:00 Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)
Previous Message Bruce Momjian 2003-09-30 04:37:07 Re: ADD FOREIGN KEY (was Re: [GENERAL] 7.4Beta)