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> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>1. Download and run the =
Cygwin=20
installer. Visit <A =
href=3D"http://cygwin.com/">http://cygwin.com/</A>=20
and<BR> click on the "Install Cygwin now' link. =
This=20
will prompt you<BR> to download a "setup.exe". =
Save this=20
file somewhere on your<BR> system and then execute=20
it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>2. Proceed through the =
Cygwin=20
install wizard. Choose 'Install from<BR> =
Internet',=20
specify a Local Package Directory and choose a =
mirror<BR> site=20
that's close to you. Answer the other installer=20
questions<BR> appropriately for your=20
configuration.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2> When you =
come to the=20
point of choosing which packages to install,<BR> =
expand the=20
'Database' section and click 'Skip' next to =
PostgreSQL<BR> to=20
change it to the latest version of PostgreSQL available=20
for<BR> Cygwin.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2>3. Once the download and =
install=20
process is complete, open a Cygwin<BR> shell and do =
the=20
following for a basic installation:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2> 3a. =
Start=20
cygserver for shared memory support. To do=20
this,<BR> enter the =
command=20
"/usr/sbin/cygserver &". This=20
program<BR> needs to be =
running=20
anytime you start the PostgreSQL=20
server<BR> (postmaster) =
or=20
initialize a database (initdb).</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT> </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
&<BR>[1] 1320</FONT></DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2></FONT> </DIV>
<DIV><FONT face=3D"MS UI Gothic" size=3D2> 3b. Use the initdb =
command to=20
create a new database cluster. =20
An<BR> example command =
would=20
be:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"MS UI Gothic"=20
size=3D2> &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> </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> </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> </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> </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--