Home > Archive > PostgreSQL for Windows > January 2006 > Can't initdb









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't initdb
Randy Solomonson

2005-12-29, 3:24 am

Hello-

When following installation instructions for Cygwin, I received the
following error:

bash-3.00$ initdb -D ~/pgsql/data/ -W -E LATIN1
fgets failure: No such file or directory
The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/sbin/initdb".
Check your installation.

Many postings claim victory over this error when changing permissions.
It didn't help me:
bash-3.00$ ls -l /usr/sbin/post*
-rwxrwxrwx+ 1 randy Users 2784256 Nov 7 18:31 /usr/sbin/postgres.exe
lrwxrwxrwx 1 randy Users 12 Dec 21 23:17 /usr/sbin/postmaster.exe -> postg
res.exe

I can run postgres just fine (well without unexpected errors):
bash-3.00$ postgres
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA env
ironment variable.

What am I doing wrong? What should I be "checking" in my installation?

--
Randy Solomonson
Contract Programmer
randy@solomonson.com
website: http://solomonson.com

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly

David JH

2006-01-01, 3:23 am

Randy,

I am having this exact problem. Could you please post a solution if
you've found one? Thanks in advance,
-djh

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com