Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6AE5FB5D80A for ; Wed, 10 Aug 2011 17:14:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 73510-09 for ; Wed, 10 Aug 2011 20:14:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id 0F4F7B5DBCA for ; Wed, 10 Aug 2011 17:14:17 -0300 (ADT) Received: by vws1 with SMTP id 1so1672067vws.33 for ; Wed, 10 Aug 2011 13:14:17 -0700 (PDT) Received: by 10.52.21.176 with SMTP id w16mr8556084vde.271.1313007257352; Wed, 10 Aug 2011 13:14:17 -0700 (PDT) Received: from issac.consistentstate.com (neustargw.va.neustar.com [209.173.53.233]) by mx.google.com with ESMTPS id d20sm605965vcp.34.2011.08.10.13.14.16 (version=SSLv3 cipher=OTHER); Wed, 10 Aug 2011 13:14:16 -0700 (PDT) Message-ID: <4E42E698.50007@consistentstate.com> Date: Wed, 10 Aug 2011 14:14:16 -0600 From: CS DBA User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: Tom Lane CC: PG Admin Subject: Re: initdb fails on AIX References: <4E42D725.8070803@consistentstate.com> <16192.1313003802@sss.pgh.pa.us> In-Reply-To: <16192.1313003802@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/93 X-Sequence-Number: 38080 On 08/10/2011 01:16 PM, Tom Lane wrote: > CS DBA writes: >> We're getting the following error when we try to run initdb on an AIX box: >> fgets failure: Error 0 >> The program "postgres" is needed by initdb but was not found in the same >> directory as "/opt/app/postgres/904/bin/initdb". >> Check your installation. > This means that initdb tried to execute "postgres -V" and didn't get any > output. What happens when you try that directly? > > regards, tom lane See below. One oddity, if I compile without the --with-openssl flag (for the configure command) then it works fine. Also, I forgot to mention that we are having to add the --disable-thread-safety flag or the configure command fails complaining that the platform is not thread safe - I suspect this is not the issue but figured I should mention it just in case... $ ./postgres -V exec(): 0509-036 Cannot load program ./postgres because of the following errors: 0509-150 Dependent module libcrypto.a(libcrypto.so.0.9.7) could not be loaded. 0509-022 Cannot load module libcrypto.a(libcrypto.so.0.9.7). 0509-026 System error: A file or directory in the path name does not exist. -- --------------------------------------------- Kevin Kempter - Constent State A PostgreSQL Professional Services Company www.consistentstate.com ---------------------------------------------