pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feed"ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
6+ messages / 2 participants
[nested] [flat]
* "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
@ 2005-11-19 21:02 olive Mckenzie <olivemckenzie2003@yahoo.com>
2005-11-19 21:23 ` Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
0 siblings, 1 reply; 6+ messages in thread
From: olive Mckenzie @ 2005-11-19 21:02 UTC (permalink / raw)
To: pgsql-admin
"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.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
2005-11-19 21:02 "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory" olive Mckenzie <olivemckenzie2003@yahoo.com>
@ 2005-11-19 21:23 ` Jeff Frost <jeff@frostconsultingllc.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Frost @ 2005-11-19 21:23 UTC (permalink / raw)
To: olive Mckenzie <olivemckenzie2003@yahoo.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
@ 2005-11-19 21:44 Jeff Frost <jeff@frostconsultingllc.com>
2005-11-19 22:01 ` 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>
0 siblings, 1 reply; 6+ messages in thread
From: Jeff Frost @ 2005-11-19 21:44 UTC (permalink / raw)
To: olive Mckenzie <olivemckenzie2003@yahoo.com>; +Cc: pgsql-admin
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 <jeff@frostconsultingllc.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?
>
>
> 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 <jeff@frostconsultingllc.com>
Frost Consulting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory"
2005-11-19 21:44 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
@ 2005-11-19 22:01 ` olive Mckenzie <olivemckenzie2003@yahoo.com>
2005-11-19 23:55 ` Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
0 siblings, 1 reply; 6+ messages in thread
From: olive Mckenzie @ 2005-11-19 22:01 UTC (permalink / raw)
To: Jeff Frost <jeff@frostconsultingllc.com>; +Cc: 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
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.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
2005-11-19 21:44 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
2005-11-19 22:01 ` 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>
@ 2005-11-19 23:55 ` Jeff Frost <jeff@frostconsultingllc.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Frost @ 2005-11-19 23:55 UTC (permalink / raw)
To: olive Mckenzie <olivemckenzie2003@yahoo.com>; +Cc: 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.
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal:
@ 2005-11-19 21:53 Jeff Frost <jeff@frostconsultingllc.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Frost @ 2005-11-19 21:53 UTC (permalink / raw)
To: olive Mckenzie <olivemckenzie2003@yahoo.com>; +Cc: 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@frostconsultingllc.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?
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-11-19 23:55 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-19 21:02 "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory" olive Mckenzie <olivemckenzie2003@yahoo.com>
2005-11-19 21:23 ` Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
2005-11-19 21:44 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
2005-11-19 22:01 ` olive Mckenzie <olivemckenzie2003@yahoo.com>
2005-11-19 23:55 ` Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
2005-11-19 21:53 Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: Jeff Frost <jeff@frostconsultingllc.com>
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