Re: BUG #15265: The program "initdb" is needed by pg_ctl but was not found in the same directory as "pg_ctl". - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #15265: The program "initdb" is needed by pg_ctl but was not found in the same directory as "pg_ctl".
Date
Msg-id 69527.1530907350@sss.pgh.pa.us
Whole thread Raw
In response to BUG #15265: The program "initdb" is needed by pg_ctl but was notfound in the same directory as "pg_ctl".  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #15265: The program "initdb" is needed by pg_ctl but was notfound in the same directory as "pg_ctl".  (Mohammed Shahid Nawaz <mohammedshahid.r@gmail.com>)
List pgsql-bugs
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> sudo -u shahid ./pg_ctl -D /root/pgsql10x/data/ initdb
> invalid binary "/root/pgsql10x/bin/pg_ctl"

I think you would get that error if pg_ctl is unable to stat itself,
which might be due to a permissions problem.  Are you sure the shahid
user can read/exec all the directories in that path (particularly /root)?

            regards, tom lane


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15265: The program "initdb" is needed by pg_ctl but was notfound in the same directory as "pg_ctl".
Next
From: Philippe Lavoie-Mongrain
Date:
Subject: Incorrect interpretation of time zone "Africa/Sao_Tome" on PG 9.6?