command initdb not found

マニーシュ シャルマ <[email protected]> Sun, 12 Mar 2006 17:22:49 +0900
Newsgroups gmane.comp.db.postgresql.cygwin
Message-ID <000b01c645ae$261eb310$0203a8c0@maneesh>
This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C645F9.95DDC470
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

Hi ,
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 http://cygwin.com/ 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?

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

Thanks in advance
Maneesh
Japan
------=_NextPart_000_0007_01C645F9.95DDC470
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-2022-jp">
<META content=3D"MSHTML 6.00.2800.1528" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>Hi ,</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>I have downloaded and =
installed cygwin as=20
stated in</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>FAQ_CYGWIN for =
postgresql</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>I have followed the steps=20
below</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>1.&nbsp; Download and run the =
Cygwin=20
installer.&nbsp; Visit <A =
href=3D"http://cygwin.com/">http://cygwin.com/</A>=20
and<BR>&nbsp;&nbsp;&nbsp; click on the "Install Cygwin now' link.&nbsp; =
This=20
will prompt you<BR>&nbsp;&nbsp;&nbsp; to download a "setup.exe".&nbsp; =
Save this=20
file somewhere on your<BR>&nbsp;&nbsp;&nbsp; system and then execute=20
it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>2.&nbsp; Proceed through the =
Cygwin=20
install wizard.&nbsp; Choose 'Install from<BR>&nbsp;&nbsp;&nbsp; =
Internet',=20
specify a Local Package Directory and choose a =
mirror<BR>&nbsp;&nbsp;&nbsp; site=20
that's close to you.&nbsp; Answer the other installer=20
questions<BR>&nbsp;&nbsp;&nbsp; appropriately for your=20
configuration.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>&nbsp;&nbsp;&nbsp; When you =
come to the=20
point of choosing which packages to install,<BR>&nbsp;&nbsp;&nbsp; =
expand the=20
'Database' section and click 'Skip' next to =
PostgreSQL<BR>&nbsp;&nbsp;&nbsp; to=20
change it to the latest version of PostgreSQL available=20
for<BR>&nbsp;&nbsp;&nbsp; Cygwin.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>3.&nbsp; Once the download and =
install=20
process is complete, open a Cygwin<BR>&nbsp;&nbsp;&nbsp; shell and do =
the=20
following for a basic installation:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>&nbsp;&nbsp;&nbsp; 3a.&nbsp; =
Start=20
cygserver for shared memory support.&nbsp; To do=20
this,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; enter the =
command=20
"/usr/sbin/cygserver &amp;".&nbsp; This=20
program<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; needs to be =
running=20
anytime you start the PostgreSQL=20
server<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (postmaster) =
or=20
initialize a database (initdb).</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 =
size=3D2>Result:</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 size=3D2>$ =
/usr/sbin/cygserver=20
&amp;<BR>[1] 1320</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>&nbsp;3b.&nbsp; Use the initdb =
command to=20
create a new database cluster.&nbsp;=20
An<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; example command =
would=20
be:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic"=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; initdb=20
-D /usr/local/pgsql/data -W -E SHIFT_JIS<BR></FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 size=3D2>BUT After =
passing initdb=20
command the cywin is prompting a error</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 =
size=3D2>Result:</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" color=3D#ff0000 size=3D2>$ initdb -D=20
/usr/local/pgsql/data -W -E SHIFT_JIS<BR>bash: initdb: command not=20
found</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>What could be the possible=20
error?</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>Please help me install =
Postgresql on<FONT=20
color=3D#ff0000> Windows 2000 (JP Version) SP4.</FONT></FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>Maneesh</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" =
size=3D2>Japan</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C645F9.95DDC470--