Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: - Mailing list pgsql-admin

From Jeff Frost
Subject Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
Date
Msg-id Pine.LNX.4.64.0511191553090.16022@discord.dyndns.org
Whole thread Raw
In response to Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"  (olive Mckenzie <olivemckenzie2003@yahoo.com>)
List pgsql-admin
>  What is the exact command you are running (copy/paste)? As simply issuing "su
> postgres" should not run initdb on login.
>
>
>  I typed
>
>  # su postgres
>  $ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

Well, that's quite different than what you mentioned before.  You should do it
like this:

su postgres
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib
export LD_LIBRARY_PATH
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

But really you should probably use crle to update your ld search lib.




pgsql-admin by date:

Previous
From: olive Mckenzie
Date:
Subject: Re: "ld.so.1: /usr/local/pgsql/bin/initdb: fatal:
Next
From: Jeff Frost
Date:
Subject: Re: "ld.so.1: /usr/local/pgsql/bin/initdb: fatal: