Received: from unix03.dimdi.de (unix03.dimdi.de [193.174.240.221]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f3K6sj345529 for ; Fri, 20 Apr 2001 02:54:45 -0400 (EDT) (envelope-from schopen@dimdi.de) Received: from mail1.dimdi.de (localhost [127.0.0.1]) by unix03.dimdi.de (8.9.3+Sun/8.9.3) with ESMTP id IAA20128 for ; Fri, 20 Apr 2001 08:52:08 +0200 (MET DST) From: schopen@dimdi.de Received: from schopen (pc141.dimdi.de [193.174.240.141]) by mail1.dimdi.de (8.9.3+Sun/8.9.3) with ESMTP id IAA16534 for ; Fri, 20 Apr 2001 08:52:07 +0200 (MEST) Organization: DIMDI To: pgsql-cygwin@postgresql.org Date: Fri, 20 Apr 2001 08:54:41 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: initdb fails Message-ID: <3ADFF951.8884.41E6868@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) X-Archive-Number: 200104/20 X-Sequence-Number: 21 >> On Wed, Apr 18, 2001 at 06:13:43PM +0200, schopen@dimdi.de wrote: >> bash-2.04$ bin/initdb >> This database system will be initialized with username "schopen". >> This user will own all the data files and must also own the server >> process. >> >> Creating directory /usr/share/postgresql/data >> [snip] >> Initializing pg_shadow. >> >> initdb failed. >> Removing /usr/share/postgresql/data. >> Removing temp file /tmp/initdb.194. >> >> Any help? Thanks a lot. > I just tried the above with the following configuration: > > NT 4.0 SP6a > PostgreSQL 7.1-2 > cygipc 1.09-2 > Cygwin 1.1.8-2 (with cygwin1.dll replaced by > cygwin1-20010416.dll.bz2) > > and the initdb worked as expected. > > My only suggestion is to capture the output from the following: > > $ sh -x /bin/initdb > > and send the precise point in the initdb shell script where the failure > occurs to the list. Hopefully, someone will be able to figure out what > is going wrong for you. > > Jason Thanks, Jason. After replacing shapshot 20010416 by 20010413 nothing changed. Then I followed your advice and located the call in the initdb script. I removed "-o /dev/null" from PGSQL_OPT and realized that the path to postgres was wrong: "//bin/postgres". I called initdb with -L and everything worked fine. I think the reason is that I have the whole cygnus stuff under c:\cygwin and not under c:\ Again thanks for your help. Michael -- ==================================================== Dr. med. Michael Schopen Tel. +49 221 4724 325 Deutsches Institut fuer Fax. +49 221 41 14 29 Medizinische Dokumentation und Information DIMDI http://www.dimdi.de Waisenhausgasse 36-38a D-50676 Koeln email:s#chopen@dimdi.de >>> remove # to use email address <<< ====================================================