From olivemckenzie2003@yahoo.com Sat Nov 19 21:02:10 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B0F6FDBC93 for ; Sat, 19 Nov 2005 17:02:10 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88455-04 for ; Sat, 19 Nov 2005 21:02:11 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web52001.mail.yahoo.com (web52001.mail.yahoo.com [206.190.48.84]) by svr1.postgresql.org (Postfix) with SMTP id BA65DDBC91 for ; Sat, 19 Nov 2005 17:02:07 -0400 (AST) Received: (qmail 62597 invoked by uid 60001); 19 Nov 2005 21:02:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=CGWhcaYZC5c/k1bJ9aUSdo1iC3OrsNYuy+phX0c84NUfqEeVUjaqVq9yR+lQ1f7uwCCO9Yy0IpE2Gmwde9hF0QZdmZ++IyMFeM6dccGQn+HXW2zk1K5W46gBR3eglTS2HZg38Ar4HnIwmfkd6jBZLTqmMPzHEOmsWqeD47Lg+xM= ; Message-ID: <20051119210208.62594.qmail@web52001.mail.yahoo.com> Received: from [86.136.215.249] by web52001.mail.yahoo.com via HTTP; Sat, 19 Nov 2005 13:02:08 PST Date: Sat, 19 Nov 2005 13:02:08 -0800 (PST) From: olive Mckenzie Subject: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory" To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-847175126-1132434128=:60666" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.48 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, HTML_MESSAGE=0.001] X-Spam-Score: 0.48 X-Spam-Level: X-Archive-Number: 200511/253 X-Sequence-Number: 19626 --0-847175126-1132434128=:60666 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "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. --0-847175126-1132434128=:60666 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
"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. --0-847175126-1132434128=:60666-- From jeff@frostconsultingllc.com Sat Nov 19 21:23:40 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2336ADBBAD for ; Sat, 19 Nov 2005 17:23:40 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10683-02 for ; Sat, 19 Nov 2005 21:23:40 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by svr1.postgresql.org (Postfix) with SMTP id 99A61DBA5F for ; Sat, 19 Nov 2005 17:23:36 -0400 (AST) Received: (qmail 20212 invoked from network); 19 Nov 2005 21:23:37 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.227.55.89 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 19 Nov 2005 21:23:36 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.4/8.13.4) with ESMTP id jAJLNROA018213; Sat, 19 Nov 2005 13:23:27 -0800 Date: Sat, 19 Nov 2005 13:23:27 -0800 (PST) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: olive Mckenzie cc: pgsql-admin@postgresql.org Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: In-Reply-To: <20051119210208.62594.qmail@web52001.mail.yahoo.com> Message-ID: References: <20051119210208.62594.qmail@web52001.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/254 X-Sequence-Number: 19627 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 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 From jeff@frostconsultingllc.com Sat Nov 19 21:44:25 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2D2EADBC93 for ; Sat, 19 Nov 2005 17:44:25 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13613-08 for ; Sat, 19 Nov 2005 21:44:24 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp109.sbc.mail.mud.yahoo.com (smtp109.sbc.mail.mud.yahoo.com [68.142.198.208]) by svr1.postgresql.org (Postfix) with SMTP id 4E1F5DBCA9 for ; Sat, 19 Nov 2005 17:44:20 -0400 (AST) Received: (qmail 62979 invoked from network); 19 Nov 2005 21:44:18 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.227.55.89 with plain) by smtp109.sbc.mail.mud.yahoo.com with SMTP; 19 Nov 2005 21:44:18 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.4/8.13.4) with ESMTP id jAJLiCAN018894; Sat, 19 Nov 2005 13:44:13 -0800 Date: Sat, 19 Nov 2005 13:44:12 -0800 (PST) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: olive Mckenzie cc: pgsql-admin@postgresql.org Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: In-Reply-To: <20051119213206.99408.qmail@web52002.mail.yahoo.com> Message-ID: References: <20051119213206.99408.qmail@web52002.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/255 X-Sequence-Number: 19628 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 From jeff@frostconsultingllc.com Sat Nov 19 21:53:34 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8B7CEDBCA0 for ; Sat, 19 Nov 2005 17:53:34 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17080-06 for ; Sat, 19 Nov 2005 21:53:35 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp113.sbc.mail.mud.yahoo.com (smtp113.sbc.mail.mud.yahoo.com [68.142.198.212]) by svr1.postgresql.org (Postfix) with SMTP id C6E90DBC96 for ; Sat, 19 Nov 2005 17:53:31 -0400 (AST) Received: (qmail 94619 invoked from network); 19 Nov 2005 21:53:28 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.227.55.89 with plain) by smtp113.sbc.mail.mud.yahoo.com with SMTP; 19 Nov 2005 21:53:27 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.4/8.13.4) with ESMTP id jAJLrLWi019257; Sat, 19 Nov 2005 13:53:22 -0800 Date: Sat, 19 Nov 2005 13:53:21 -0800 (PST) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: olive Mckenzie cc: pgsql-admin@postgresql.org Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: In-Reply-To: <20051119214504.53216.qmail@web52004.mail.yahoo.com> Message-ID: References: <20051119214504.53216.qmail@web52004.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/256 X-Sequence-Number: 19629 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 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? > > From olivemckenzie2003@yahoo.com Sat Nov 19 22:01:12 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 305E4DBC91 for ; Sat, 19 Nov 2005 18:01:12 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17360-05 for ; Sat, 19 Nov 2005 22:01:13 +0000 (GMT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web52014.mail.yahoo.com (web52014.mail.yahoo.com [206.190.48.97]) by svr1.postgresql.org (Postfix) with SMTP id 33813DBC7E for ; Sat, 19 Nov 2005 18:01:08 -0400 (AST) Received: (qmail 33435 invoked by uid 60001); 19 Nov 2005 22:01:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=q+jyj5UZpZwoDqHuAefn2pWMapHlXjGSSmvYPFZqRoXwnPpv7oK9qtXA76f8ijjX7gkmcL39FPALcuTn5sCcSS3F8pnymOy0Owp9Jp73VetPELb18N46AVD3f5yd4M2ichS3omkDkv7PpEfGO7/YIPUNlGRcVHFMRuSnTKXf6cE= ; Message-ID: <20051119220110.33429.qmail@web52014.mail.yahoo.com> Received: from [86.136.215.249] by web52014.mail.yahoo.com via HTTP; Sat, 19 Nov 2005 14:01:10 PST Date: Sat, 19 Nov 2005 14:01:10 -0800 (PST) From: olive Mckenzie Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: libreadline.so.4: open failed: No such file or directory" To: Jeff Frost Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1341648861-1132437670=:28257" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.4 required=5 tests=[AWL=-0.080, DNS_FROM_RFC_ABUSE=0.479, HTML_MESSAGE=0.001] X-Spam-Score: 0.4 X-Spam-Level: X-Archive-Number: 200511/257 X-Sequence-Number: 19630 --0-1341648861-1132437670=:28257 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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. --0-1341648861-1132437670=:28257 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
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 fr om 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 Consu lting, LLC http://www.frostconsultingllc.com/
Phone: 650-780-7908 FAX: 650-649-1954




Yahoo! FareChase - Search multiple travel sites in one click. --0-1341648861-1132437670=:28257-- From jeff@frostconsultingllc.com Sat Nov 19 23:55:20 2005 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 79C8BDBCAF for ; Sat, 19 Nov 2005 19:55:20 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31742-09 for ; Sat, 19 Nov 2005 23:55:22 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by svr1.postgresql.org (Postfix) with SMTP id 910A1DBC82 for ; Sat, 19 Nov 2005 19:55:17 -0400 (AST) Received: (qmail 27859 invoked from network); 19 Nov 2005 23:55:20 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.227.55.89 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 19 Nov 2005 23:55:18 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.4/8.13.4) with ESMTP id jAJNtDMd024334; Sat, 19 Nov 2005 15:55:13 -0800 Date: Sat, 19 Nov 2005 15:55:13 -0800 (PST) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: olive Mckenzie cc: pgsql-admin@postgresql.org Subject: Re: "ld.so.l: /usr/local/pgsql/bin/initdb: fatal: In-Reply-To: <20051119220110.33429.qmail@web52014.mail.yahoo.com> Message-ID: References: <20051119220110.33429.qmail@web52014.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/260 X-Sequence-Number: 19633 > 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.