Database-SQL-RDBMS HOW-TO document for Linux (PostgreSQL Object Relational Database System): PostgreSQL Port to Windows 95/Windows NTNextPreviousContents
Download the binaries and unpack and follow instructions in
Install PostgreSQL
from step 13.
If you want to re-compile the source tree then follow the instructions given below.
Porting to NT is done using Cygnus cygwin32 package which
has gcc, gmake for Win NT/95.
2. The default window of cygwin bash is black-background window with
24 lines. To set the background color and size of bash window, click on
NT-Start->Control-panel->MS DOS console and change the background color
to grey and size to 70 lines.
(OR) right click on Window titlebar and change property.
3. Edit cygnus.bat in c:\cygnus\cywinb20 and set the following -
set HOME=c:\cygnus\cygwinb20
bash --login
And also edit the /.bash_profile and put these lines
set -o vi
PATH=$PATH:/usr/local/bin:/usr/bin
export PATH
4. To enable the command-line history editing give -
bash$ set -o vi
Using the l,k,j,h you can use the vi commands to edit the command line
history commands. You can repeat or modify previous commands, saves
typing time.
5. You can do mount of drives/directories using this command -
bash$ umount /
bash$ mount "c:\cygnus" /
bash$ mount "c:\cygnus\cygwin-b20\postgres" /usr/local/pgsql
Copy Postgres source code to c:/Postgres/Source directory, then
tar -zxvf postgresql-6.5.3.tar.gz
mv postgresql-6.5.3 pgsql
Mount directories now -
mount -b c:/Postgres/Binary/pgsql /usr/local/pgsql
mount c:/Postgres/Source/pgsql /usr/src/pgsql
mount c:/Unix/Root/cygwin-b20/share /sw/cygwin-b20/share