Skip site navigation (1) Skip section navigation (2)

Re: initdb fails

From: Jason Tishler <Jason(dot)Tishler(at)dothill(dot)com>
To: schopen(at)dimdi(dot)de
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: initdb fails
Date: 2001-04-20 15:58:48
Message-ID: 20010420115848.G294@dothill.com (view raw or flat)
Thread:
Lists: pgsql-cygwin
Michael,

On Fri, Apr 20, 2001 at 08:54:41AM +0200, schopen(at)dimdi(dot)de wrote:
> >> On Wed, Apr 18, 2001 at 06:13:43PM +0200, schopen(at)dimdi(dot)de wrote:
> >> bash-2.04$ bin/initdb

When I first saw the above, I thought that it was strange...

> Thanks, Jason. After replacing shapshot 20010416 by 20010413 nothing changed. 

I suggested using 20010413 (to the entire pgsql-cygwin list not just
you) to workaround the Cygwin AF_UNIX socket problem -- not to solve
your original problem.

> 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".

The above will be interpreted by Cygwin as a UNC path.  In this case,
Cygwin will look for share "postgres" on machine "bin".

> 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:\

No!  It is discouraged from installing Cygwin under the root directory
of a drive.  The default is "C:\Cygwin" and I suggest that you use it.
 
If your Cygwin installation is set up correctly, then you should be able
to just type:

    $ initdb

Hence, I believe that you environment (i.e., PATH) is not set up
correctly.  If you cannot determine what is wrong yourself, then send
the output from cygcheck -s -r v to the Cygwin mailing list:

    cygwin(at)cygwin(dot)com

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason(dot)Tishler(at)dothill(dot)com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

In response to

pgsql-cygwin by date

Next:From: Tom LaneDate: 2001-04-20 16:43:30
Subject: Re: [PATCHES] Cygwin PostgreSQL ESQL Patch
Previous:From: Jason TishlerDate: 2001-04-20 15:36:44
Subject: Cygwin PostgreSQL ESQL Patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group