From: Tom Lane <tgl@sss.pgh.pa.us>
To: mohammedshahid.r@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.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: Fri, 06 Jul 2018 16:02:30 -0400
Message-ID: <69527.1530907350@sss.pgh.pa.us> (raw)
In-Reply-To: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org>
References: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org>
=?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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, noreply@postgresql.org
Subject: Re: BUG #15265: The program "initdb" is needed by pg_ctl but was not found in the same directory as "pg_ctl".
In-Reply-To: <69527.1530907350@sss.pgh.pa.us>
References: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org> <69527.1530907350@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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