|
1 | | -How to install PostgreSQL on Windows NT or Windows 2000 |
2 | | -======================================================= |
3 | | -$Date: 2001/10/25 16:20:51 $ |
4 | | - |
5 | | -1. Install the Cygwin package. |
| 1 | +How to install PostgreSQL on Windows |
| 2 | +==================================== |
| 3 | +$Date: 2001/12/05 18:23:40 $ |
6 | 4 |
|
| 5 | +1. Install the latest Cygwin package, available at http://cygwin.com/. |
7 | 6 | The Cygwin package provides a UNIX-like API on top of the Win32 |
8 | | - API. It is available at http://sources.redhat.com/cygwin/. At |
9 | | - the time of this writing, it is recommended to use either version |
10 | | - 1.1.7, a snapshot built after 2001/02/05 12:36:41, or the 1.3.x series |
11 | | - (when available). Version 1.1.8 contains a bug that will prevent the |
12 | | - server to work. Using older versions such as 1.0 or B20 might require |
13 | | - extra efforts. |
14 | | - |
15 | | -2. Install the cygipc package, available at |
| 7 | + API. Using older versions such as 1.0 or B20 might require extra |
| 8 | + efforts. |
| 9 | + |
| 10 | + A pre-built PostgreSQL is part of the standard Cygwin distribution |
| 11 | + and is installed by Cygwin's setup.exe. You are encouraged to use |
| 12 | + this version unless it does not meet your needs. Please read the |
| 13 | + README file, /usr/doc/Cygwin/postgresql-${version}.README, where |
| 14 | + "${version}" is the version (e.g., 7.1.3). |
| 15 | + |
| 16 | +2. Install the latest cygipc package, available at |
16 | 17 | http://www.neuro.gatech.edu/users/cwilson/cygutils/V1.1/cygipc/. |
17 | 18 | Do not use versions prior to 1.04, they will not work. |
18 | 19 |
|
| 20 | + Use the following command to install the cygipc package: |
| 21 | + |
| 22 | + $ tar -C / -xjf cygipc-${version}.tar.bz2 |
| 23 | + |
| 24 | + where "${version}" is the version (e.g., 1.11-1). |
| 25 | + |
19 | 26 | 3. The Cygwin bin directory has to be placed in the path before the |
20 | 27 | Windows program directories, because the sort.exe has to be taken |
21 | 28 | from Cygwin, not Windows. |
22 | 29 |
|
23 | 30 | 4. Start ipc-daemon from the cygipc package. Use "net start ipc-daemon", |
24 | 31 | if ipc-daemon is installed as a service; otherwise, use "ipc-daemon &". |
25 | 32 | This program needs to be running anytime you start the PostgreSQL |
26 | | - server (postmaster). |
| 33 | + server (postmaster) or initialize a database (initdb). |
| 34 | + |
| 35 | +5. Proceed according to the INSTALL file (i.e., ./configure; make; etc.) |
| 36 | + noting the following Cygwin specific differences: |
| 37 | + |
| 38 | + o The GNU make command is called "make" not "gmake". |
| 39 | + o The adduser command is not supported -- use the appropriate |
| 40 | + user management application on Windows NT, 2000, or XP. |
| 41 | + Otherwise, skip this step. |
| 42 | + o The su command is not supported -- use ssh to simulate su |
| 43 | + on Windows NT, 2000, or XP. Otherwise, skip this step. |
27 | 44 |
|
28 | | -5. Proceed according to the INSTALL file. (./configure; make; etc.) |
| 45 | + Alternatively, proceed according to the README file supplied with |
| 46 | + the Cygwin PostgreSQL package. |
29 | 47 |
|
30 | 48 | NOTE: The following are known issues with PostgreSQL on Windows: |
31 | 49 |
|
|