Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:

From: Jeff Frost <jeff(at)frostconsultingllc(dot)com>
To: olive Mckenzie <olivemckenzie2003(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
Date: 2005-11-19 21:53:21
Message-ID: Pine.LNX.4.64.0511191347560.22716@discord.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

setting it like you mention below will set it for this session only. Setting
it in your .profile (Is solaris 10 still using /bin/sh and not bash as
the default shell?) should make it available for each login. I don't have a
solaris 10 machine to look at right now, but in most linux distros, you can
set system wide environemnt variables in /etc/profile.d, I would guess that
Solaris 10 has a similar setup.

Also, on linux machines, there is an /etc/ld.so.conf which has contains the
system wide search path for shared libs, solaris 10 has something similar in
/var/ld for 32bit and 64bit libs. You can change this by running the crle
command (Configure Runtime Linker Environment).

On Sat, 19 Nov 2005, olive Mckenzie wrote:

>
> Is this how one set the LD_LIBRARY_PATH for bourne shell Solaris 10 x86
> # LD_LIBRARY_PATH =/opt/sfw/lib
> # export LD_LIBRARY_PATH
>
> or is there an init file I should insert it into.
>
> Olive
>
>
>
> Jeff Frost <jeff(at)frostconsultingllc(dot)com> wrote:
> Olive,
>
> You need to locate the libreadline.so.4 shared library on your system. I'm
> guessing it's not in any of the standard locations and then add that path to
> your LD_LIBRARY_PATH. You might also need to install libreadline if you do
> not have it available on your system.
>
> I'm curious as to why initdb is kicking off when you su to the postgres user
> though. Is this how the solaris pkg is set up?
>
>

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message olive Mckenzie 2005-11-19 22:01:10 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
Previous Message Jeff Frost 2005-11-19 21:44:12 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: