initdb, could not locate postgres executable - Mailing list pgsql-cygwin

From Grigoriy Puzankin
Subject initdb, could not locate postgres executable
Date
Msg-id 1185788613.20031128115957@b-great.net
Whole thread Raw
Responses Re: initdb, could not locate postgres executable
List pgsql-cygwin
Hi,

Under CygWin on Windows XP Pro I've been using PostgreSQL 7.3 for a
year, then I decided to switch to PostgreSQL 7.4-1.

When I run initdb the following error occurs:

creating directory /cygdrive/d/pgsql.data... ok
creating directory /cygdrive/d/pgsql.data/base... ok
creating directory /cygdrive/d/pgsql.data/global... ok
creating directory /cygdrive/d/pgsql.data/pg_xlog... ok
creating directory /cygdrive/d/pgsql.data/pg_clog... ok
selecting default max_connections... 100
selecting default shared_buffers... 1000
creating configuration files... ok
creating template1 database in /cygdrive/d/pgsql.data/base/1... ok
initializing pg_shadow... FATAL: /usr/bin/postgres: could not locate postgres executable

I believe there might be an environment variable that is not set or
set incorrectly. I've tried to uninstall CygWin, cleared all related
Windows XP users account, cleared all CygWin environment variables.
Then I installed CygWin from scratch - no changes, I'm getting the
same error. I also tried to downgrade PostgreSQL to version 7.3 - the
same problem (at least it's not related to PostgreSQL 7.4).

If anyone has thoughts - please share with me.

--
Thanks in advance
Grigoriy Puzankin



pgsql-cygwin by date:

Previous
From: "Leeuw van der, Tim"
Date:
Subject: Re: FAQ_MSWIN patch: clarify instructions
Next
From: "Helen Hudson"
Date:
Subject: pgadmin fails to connect