Thread: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"

"ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
 
I am using Solaris 10 and postgres-8.0.1
after typying
 
# su postgres
I get the message
 
$ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory
 
I don't know what to do. Please can you help me.
 
 
Regards
 
Olive


Yahoo! FareChase - Search multiple travel sites in one click.

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

From
Jeff Frost
Date:
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?

--
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954

On Sat, 19 Nov 2005, olive Mckenzie wrote:

> "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
>
>  I am using Solaris 10 and postgres-8.0.1
>  after typying
>
>  # su postgres
>  I get the message
>
>  $ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory