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

Re: command initdb not found

From: "Reini Urban" <rurban(at)x-ray(dot)at>
To: マニーシュ シャルマ <kdsgn542(at)ybb(dot)ne(dot)jp>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: command initdb not found
Date: 2006-03-19 12:15:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-cygwin
2006/3/12, マニーシュ シャルマ <kdsgn542(at)ybb(dot)ne(dot)jp>:
> I have downloaded and installed cygwin as stated in
> FAQ_CYGWIN for postgresql
> I have followed the steps below
> 1.  Download and run the Cygwin installer.  Visit and
>     click on the "Install Cygwin now' link.  This will prompt you
>     to download a "setup.exe".  Save this file somewhere on your
>     system and then execute it.
> 2.  Proceed through the Cygwin install wizard.  Choose 'Install from
>     Internet', specify a Local Package Directory and choose a mirror
>     site that's close to you.  Answer the other installer questions
>     appropriately for your configuration.
>     When you come to the point of choosing which packages to install,
>     expand the 'Database' section and click 'Skip' next to PostgreSQL
>     to change it to the latest version of PostgreSQL available for
>     Cygwin.
> 3.  Once the download and install process is complete, open a Cygwin
>     shell and do the following for a basic installation:
>     3a.  Start cygserver for shared memory support.  To do this,
>          enter the command "/usr/sbin/cygserver &".  This program
>          needs to be running anytime you start the PostgreSQL server
>          (postmaster) or initialize a database (initdb).
> Result:
> $ /usr/sbin/cygserver &
> [1] 1320
>  3b.  Use the initdb command to create a new database cluster.  An
>          example command would be:
>             initdb -D /usr/local/pgsql/data -W -E SHIFT_JIS
> BUT After passing initdb command the cywin is prompting a error
> Result:
> $ initdb -D /usr/local/pgsql/data -W -E SHIFT_JIS
> bash: initdb: command not found
> What could be the possible error?

export cygwin=server

Easier is to use the rc init script

> Please help me install Postgresql on Windows 2000 (JP Version) SP4.

Reini Urban

In response to

pgsql-cygwin by date

Next:From: RajarajanDate: 2006-04-18 08:54:21
Subject: Pgsql as service in windows
Previous:From: マニーシュ シャルマDate: 2006-03-12 08:22:49
Subject: command initdb not found

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