pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: olive Mckenzie <olivemckenzie2003@yahoo.com>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
Date: Sat, 19 Nov 2005 14:01:10 -0800 (PST)
Message-ID: <20051119220110.33429.qmail@web52014.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0511191341130.22716@discord.dyndns.org>

  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
   
  Then I got the message
   
  $ ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory
   
  Note /usr/local/pgsql/data is owned by postgres
   
  Are you installing from the TARFILE or from a solaris pkg?
   
  I have installed all the files from Sun freeware sites for solaris 10 .gz files even postgresql-8.0.1.
   
  gunzip to unpack and pkgadd -d file name minus .gz to install.
  

  To get your command to run, you probably just need to do the following before 
you execute it, you could also add this to your bash profile:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib
   
   
  Where is my bash file
   
  in /etc/skel/
   
  I have    local.cshrc    local.login and local.profile 
   
   
  Olive
  

  

Jeff Frost <jeff@frostconsultingllc.com> wrote:
  Olive, please don't take the pgsql-admin@postgresql.org address out of the 
list as others will likely have excellent info for you as well, plus people 
can search the archives when they have similar problems.

Are you installing from the TARFILE or from a solaris pkg?

What is the exact command you are running (copy/paste)? As simply issuing "su 
postgres" should not run initdb on login.

To get your command to run, you probably just need to do the following before 
you execute it, you could also add this to your bash profile:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sfw/lib

On Sat, 19 Nov 2005, olive Mckenzie wrote:

> Hello Jeff Frost,
>
> I have installed installed libreadline.so.4. When I do a search for it I 
> find it in /opt/sfw/lib.
>
> initdb kicks off even if i try the command from root.
>
> Olive
>
> Jeff Frost 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?
>
>
> 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?

> The reason for using "su postgres"

> is that it is part of the instructions give by postgresql-8.0.1 for 
> installing the software into the user postgres directory.


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


  



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

view thread (6+ messages)  latest in thread

Message-ID: <20051119220110.33429.qmail@web52014.mail.yahoo.com>
Permalink:  ../20051119220110.33429.qmail@web52014.mail.yahoo.com/
Also on:    postgresql.org/message-id/20051119220110.33429.qmail@web52014.mail.yahoo.com

 · 

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: olivemckenzie2003@yahoo.com, jeff@frostconsultingllc.com
  Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
  In-Reply-To: <20051119220110.33429.qmail@web52014.mail.yahoo.com>
  References: <Pine.LNX.4.64.0511191341130.22716@discord.dyndns.org> <20051119220110.33429.qmail@web52014.mail.yahoo.com>

* 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