Thread: Postgres on cygwin trouble

Postgres on cygwin trouble

From
Invisible Phantom
Date:

Hi

I use Windows XP, 128 megs of ram, pentium 3 1ghz, 20 GB hard disk.

When i try to run ipc-daemon & its ok but when i run initdb -D /usr/databases/one

it goes fine till it reaches creating configuration files then it says /usr/bin/postgres invalid binary Find EXec failed: ... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

bash gives me the same problem but when i look w/ windows explorer it is there

my cygwin directory is C:\Cygwin and my default bin directory is /bin (i tried making it go there to but it says /bin/postgres not found ... (i had tried moving postgres to /usr/bin but to no avail. and when i type in /bin/postgres bash runs it but it exits w/ no database postmaster works just fine. i am running the latest cygipc

 

any ideas ???????

if not the ncould someone tell me how to make a new cygwin install that i can run directly off a cd on any machine w/o interfering w/ my current installation ?

THX

phantom



Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Re: Postgres on cygwin trouble

From
Jason Tishler
Date:
phantom,

On Mon, Mar 31, 2003 at 04:24:58PM -0800, Invisible Phantom wrote:
> any ideas ???????

Are you running the latest Cygwin setup.exe?  This permissions problem
was supposed to be solved already.

See attached.  I posted it earlier today but I haven't seen the mailing
list copy yet...

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6
Werner,

On Fri, Mar 28, 2003 at 03:56:41PM +0100, Hans, Werner wrote:
> LOG: FindExec: invalid binary "/usr/bin/postgres"
> FATAL: /usr/bin/postgres: could not locate executable, bailing out...

What does the following command indicate on your system?

    $ ls -ld /usr/bin /usr/bin/postgres.exe
    drwxr-xr-x+   4 Administ None       221184 Feb 28 14:12 /usr/bin
    -rwxr-xr-x    1 Administ None      1981952 Feb 18 11:15 /usr/bin/postgres.exe

Does the following help?

    $ chmod a+rx /usr/bin /usr/bin/*

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6