Thread:

From
"Hans, Werner"
Date:
Hi,

I installed the default packages and PostgreSQL 7.3.2 using your Cygwin
Setup. Furthermore I installed the cygipc 1.13.2 package required by
Postgres and called ipc-daemon.

When I invoke initdb -D /opt/postgres/data the script creates several
directories, one template database, and some configuration files but finally
fails when initializing pg_shadow.
It reports
LOG: FindExec: invalid binary "/usr/bin/postgres"
FATAL: /usr/bin/postgres: could not locate executable, bailing out...

However /usr/bin/postgres -V and /usr/bin/postgres -? work fine.

The same happens with postgreSQL 7.3.1. Do I have to install further
(database) packages?

Regards

Werner Hans


Re:

From
Jason Tishler
Date:
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