Re: [GENERAL] shared library

fcanedo@soneramail.nl

From: <fcanedo@soneramail.nl>
To: Genco Yilmaz <gyilmaz@ilkyar.org>
Cc: <pgsql-general@postgresql.org>, <pgsql-admin@postgresql.org>
Date: 2001-12-12T17:55:54Z
Lists: pgsql-general

On Tue, 11 Dec 2001, Genco Yilmaz wrote:
...
> I am a new comer to this list.My problem is related to installing of
> postgres 7.1.3 to Slackware 8.0 Linux.  2.2.19 Kernel
...
>     But when I try to run psql program it says that it cannot find shared
> object files.. even if I tell the OS where it can find it..


Did you try running ldconfig? You need to run this as root after making
changes to /etc/ld.so.conf. If you add the '-v' option it will  tell you
what libraries it's using.

ldd may be usefull as well, it tells you what libraries a binary uses and
complains when it can't find one or more. That way you'll know what to
look for if indeed you're missing libraries!

For example:

$ ldd /usr/local/pgsql
	libpq.so.2 => /usr/local/pgsql/lib/libpq.so.2 (0x40017000)
...
	libc.so.6 => /lib/libc.so.6 (0x40259000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


Good luck,

Francisco