Re: initdb failing: Invalid binary "/usr/bin/postgres"?

Lists: pgsql-cygwin
From: dbruzzone(at)attbi(dot)com
To: Jason Tishler <jason(at)tishler(dot)net>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: initdb failing: Invalid binary "/usr/bin/postgres"?
Date: 2002-07-10 19:57:26
Message-ID: 20020710195726.TWLB24728.rwcrmhc51.attbi.com@rwcrwbc70
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin


Jason,

Here's the output after a fresh install (PostgreSQL 7.2.1-2):

$ ls -l /usr/bin/postgres.exe
-rwx------ 1 Davide None 2708992 Jun 10 06:13 /usr/bin/postgres.exe

> Please use Cygwin's setup.exe to re-install PostgreSQL and then perform
> the following:
>
> $ ls -l /usr/bin/postgres.exe
>
> What is the output of the above command?

Cheers...

Dave


From: Jason Tishler <jason(at)tishler(dot)net>
To: dbruzzone(at)attbi(dot)com
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: initdb failing: Invalid binary "/usr/bin/postgres"?
Date: 2002-07-11 13:34:13
Message-ID: 20020711133412.GA1508@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Dave,

On Wed, Jul 10, 2002 at 07:57:26PM +0000, dbruzzone(at)attbi(dot)com wrote:
> Here's the output after a fresh install (PostgreSQL 7.2.1-2):
>
> $ ls -l /usr/bin/postgres.exe
> -rwx------ 1 Davide None 2708992 Jun 10 06:13 /usr/bin/postgres.exe

The above is bad.

What is the output of the following command?

$ ls -ld /usr/bin

My WAG is that you will get something like following:

drwx------ 2 Davide None 0 Jul 11 09:16 /usr/bin

Am I correct? If so, then your Cygwin setup is not correct.

Use the following to fix at least this aspect:

$ chown 544 /usr/bin
$ chmod 755 /usr/bin

Try re-installing PostgreSQL (again). Does /usr/bin/postgres.exe
install with the appropriate permissions?

Thanks,
Jason