Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbXDN-0006De-JE for pgsql-admin@arkaria.postgresql.org; Fri, 06 Jul 2018 20:20:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fbXDL-0006gF-Br for pgsql-admin@arkaria.postgresql.org; Fri, 06 Jul 2018 20:20:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbUo1-0000nE-CC for pgsql-admin@lists.postgresql.org; Fri, 06 Jul 2018 17:46:05 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fbUny-0006Vk-3u for pgsql-admin@postgresql.org; Fri, 06 Jul 2018 17:46:04 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A4C57DE0034D for ; Fri, 6 Jul 2018 10:46:00 -0700 (MST) Date: Fri, 6 Jul 2018 10:46:00 -0700 (MST) From: mohammed shahid To: pgsql-admin@postgresql.org Message-ID: <1530899160672-0.post@n3.nabble.com> In-Reply-To: <4DAC6CEA020000250003C984@gw.wicourts.gov> References: <926506.81971.qm@web65907.mail.ac4.yahoo.com> <4DAC6CEA020000250003C984@gw.wicourts.gov> Subject: Re: "postgres" is needed by initdb but was not found MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Kevin, I am new to this forum, but even i am facing this issue as reported 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. As reported by H S, even 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, -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 Thanks Shahid -- Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html