pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Elielson Fontanezi <ElielsonF@prodam.sp.gov.br>
To: pgsql-general <pgsql-general@postgresql.org>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: [GENERAL] error while loading shared libraries: libpq.so.3
Date: Fri, 1 Aug 2003 14:31:31 +0100
Message-ID: <200308011431.31423.dev@archonet.com> (raw)
In-Reply-To: <A799F7647794D311924A005004ACEA97096997BE@cprodamibs249.prodam>
References: <A799F7647794D311924A005004ACEA97096997BE@cprodamibs249.prodam>

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



view thread (4+ messages)

Message-ID: <200308011431.31423.dev@archonet.com>
Permalink:  ../200308011431.31423.dev@archonet.com/
Also on:    postgresql.org/message-id/200308011431.31423.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dev@archonet.com, ElielsonF@prodam.sp.gov.br, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] error while loading shared libraries: libpq.so.3
  In-Reply-To: <200308011431.31423.dev@archonet.com>
  References: <A799F7647794D311924A005004ACEA97096997BE@cprodamibs249.prodam> <200308011431.31423.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox