pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boban Acimovic <acim@mbl.is>
To: Richard NAGY <richard@presenceweb.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Big problem about libpq.so.2.1, ldconfig and ldd
Date: 12 Dec 2001 09:36:49 +0000
Message-ID: <1008149810.26899.0.camel@acim.mbl.is> (raw)
In-Reply-To: <3C171C77.ED75AC5B@presenceweb.com>
References: <3C171C77.ED75AC5B@presenceweb.com>

> On a machine with 7.0.2, we have this :
> 
> ldconfig -p |grep libpq.so
>         libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1
>         libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
>         libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so
> 
> On an other machine with 7.1.3, we have this :
> 
> ldconfig -p |grep libpq.so
>         libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2
>         libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so

It should be like this:

lrwxrwxrwx   1 root     other         12 des 10 14:58 libpq.so ->
libpq.so.2.1
lrwxrwxrwx   1 root     other         12 des 10 14:58 libpq.so.2 ->
libpq.so.2.1
-rwxr-xr-x   1 root     other      78114 des 10 14:58 libpq.so.2.1

Hmm, why don't you go to /usr/local/pgsql/lib on your second machine and
do "ls -la libpq*". Then figure out what is the real file and what is
the symbolic link. Rename the real file to libpq.so.2.1 and then make
two symbolic links libpq.so and libpq.so.2 to point to libpq.so.2.1.
This is something wrong with your installation on the second machine,
but this should resolve the problem. This basically has nothing to do
with Postgres (although it is about Postgres library), but this is plain
Unix problem with loading libraries.

Regards,
Boban Acimovic
www.mbl.is




view thread (3+ messages)  latest in thread

Message-ID: <1008149810.26899.0.camel@acim.mbl.is>
Permalink:  ../1008149810.26899.0.camel@acim.mbl.is/
Also on:    postgresql.org/message-id/1008149810.26899.0.camel@acim.mbl.is

 · 

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: acim@mbl.is, richard@presenceweb.com
  Subject: Re: Big problem about libpq.so.2.1, ldconfig and ldd
  In-Reply-To: <1008149810.26899.0.camel@acim.mbl.is>
  References: <3C171C77.ED75AC5B@presenceweb.com> <1008149810.26899.0.camel@acim.mbl.is>

* 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