pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mohammedshahid.r@gmail.com
Subject: 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 18:10:47 +0000
Message-ID: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org> (raw )
The following bug has been logged on the website:
Bug reference: 15265
Logged by: Mohammed Shahid Nawaz
Email address: mohammedshahid.r@gmail.com
PostgreSQL version: 10.4
Operating system: CentOS7
Description:
Hello,
I am new to this forum, i am facing this issue, where i get the below
error.
sudo -u shahid ./pg_ctl -D /root/pgsql10x/data/ initdb invalid binary
"/root/pgsql10x/bin/pg_ctl" invalid binary "/root/pgsql10x/bin/pg_ctl"
invalid binary "/root/pgsql10x/bin/pg_ctl" The program "initdb" is needed by
pg_ctl but was not found in the same directory as "pg_ctl". Check your
installation.
FYI , I am trying to run this from root. I have built from the source. I am
trying version 10. on CentOS7. I downloaded direct from postgres site. I am
not facing this problem when i run as non-root user.
I have all the files in the bin directory, as shared below , bin directory
files
-rwxrwxrwx. 1 shahid shahid 7604946 Jul 6 17:19 postgres
lrwxrwxrwx. 1 shahid shahid 8 Jul 6 17:19 postmaster -> postgres
-rwxr-xr-x. 1 shahid shahid 908965 Jul 6 17:19 ecpg
-rwxr-xr-x. 1 shahid shahid 128690 Jul 6 17:19 initdb
-rwxr-xr-x. 1 shahid shahid 30548 Jul 6 17:19 pg_archivecleanup
-rwxr-xr-x. 1 shahid shahid 112608 Jul 6 17:19 pg_basebackup
-rwxr-xr-x. 1 shahid shahid 71241 Jul 6 17:19 pg_receivewal
-rwxr-xr-x. 1 shahid shahid 72771 Jul 6 17:19 pg_recvlogical
-rwxr-xr-x. 1 shahid shahid 30009 Jul 6 17:19 pg_config
-rwxr-xr-x. 1 shahid shahid 39920 Jul 6 17:19 pg_controldata
-rwxr-xr-x. 1 shahid shahid 58438 Jul 6 17:19 pg_ctl
-rwxr-xr-x. 1 shahid shahid 400623 Jul 6 17:19 pg_dump
-rwxr-xr-x. 1 shahid shahid 164991 Jul 6 17:19 pg_restore
-rwxr-xr-x. 1 shahid shahid 97686 Jul 6 17:19 pg_dumpall
-rwxr-xr-x. 1 shahid shahid 49138 Jul 6 17:19 pg_resetwal
-rwxr-xr-x. 1 shahid shahid 88205 Jul 6 17:19 pg_rewind
-rwxr-xr-x. 1 shahid shahid 31798 Jul 6 17:19 pg_test_fsync
-rwxr-xr-x. 1 shahid shahid 26337 Jul 6 17:19 pg_test_timing
-rwxr-xr-x. 1 shahid shahid 130515 Jul 6 17:19 pg_upgrade
-rwxr-xr-x. 1 shahid shahid 86270 Jul 6 17:19 pg_waldump
-rwxr-xr-x. 1 shahid shahid 141273 Jul 6 17:19 pgbench
-rwxr-xr-x. 1 shahid shahid 454216 Jul 6 17:19 psql
-rwxr-xr-x. 1 shahid shahid 60635 Jul 6 17:19 createdb
-rwxr-xr-x. 1 shahid shahid 56335 Jul 6 17:19 dropdb
-rwxr-xr-x. 1 shahid shahid 64416 Jul 6 17:19 createuser
-rwxr-xr-x. 1 shahid shahid 56305 Jul 6 17:19 dropuser
-rwxr-xr-x. 1 shahid shahid 61135 Jul 6 17:19 clusterdb
-rwxr-xr-x. 1 shahid shahid 68735 Jul 6 17:19 vacuumdb
-rwxr-xr-x. 1 shahid shahid 64047 Jul 6 17:19 reindexdb
-rwxr-xr-x. 1 shahid shahid 59104 Jul 6 17:19 pg_isready
Requesting help at the earliest.
Thanks in advance,
Shahid
view thread (6+ messages) latest in thread
Message-ID: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org>
Permalink: ../153090064731.1408.9248514053747358145@wrigleys.postgresql.org/
Also on: postgresql.org/message-id/153090064731.1408.9248514053747358145@wrigleys.postgresql.org
copy link · copy postgr.es
reply 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: noreply@postgresql.org, mohammedshahid.r@gmail.com
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: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org>
References: <153090064731.1408.9248514053747358145@wrigleys.postgresql.org>
* 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