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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mohammedshahid(dot)r(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, PG Bug reporting form <noreply(at)postgresql(dot)org>
Subject: Re: BUG #15265: The program "initdb" is needed by pg_ctl but was not found in the same directory as "pg_ctl".
Date: 2018-07-06 20:02:30
Message-ID: 69527.1530907350@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Philippe Lavoie-Mongrain 2018-07-06 22:23:44 Incorrect interpretation of time zone "Africa/Sao_Tome" on PG 9.6?
Previous Message PG Bug reporting form 2018-07-06 18:10:47 BUG #15265: The program "initdb" is needed by pg_ctl but was not found in the same directory as "pg_ctl".