Re: error while loading shared libraries: libpq.so.3 - Mailing list pgsql-general

From Richard Huxton
Subject Re: error while loading shared libraries: libpq.so.3
Date
Msg-id 200308011431.31423.dev@archonet.com
Whole thread Raw
In response to error while loading shared libraries: libpq.so.3  (Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>)
List pgsql-general
On Friday 01 August 2003 12:54, Elielson Fontanezi wrote:
> Hi all!
>
>     I would like some suggestion on how to solve that:
>
> postgres$ createdb postgres
> /usr/local/postgresql-7.3.4/bin/psql: error while loading shared libraries:
> libpq.so.3: cannot open shared object file: No such file or directory
> createdb: database creation failed
> postgres$
> postgres$ uname -a
> Linux PgServer.prodam 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586 i586
> i386 GNU/Linux

You probably need to add your library folder to /etc/ld.so.conf and then run
ldconfig.

Alternatively, you could symlink from /usr/local/lib to the library and do the
same for the binaries - that would mean you could skip the leading path when
running psql.

You can find the correct directory with:
  find /usr/local -name 'libpg.so.3'

There should be something on this in the installation instructions. In any
case, googling for "ldconfig" should find you some help.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: COPY and domains
Next
From: Rory Campbell-Lange
Date:
Subject: Bug in comment parsing? [was: Re: Comments in .sql files]