postgresql/doc/README.NT

82 lines
2.7 KiB
Plaintext
Raw Normal View History

1999-06-16 20:09:59 +02:00
From: "Joost Kraaijeveld" <JKraaijeveld@askesis.nl>
To: "Pgsql-Ports@Postgresql. Org" <pgsql-ports@postgreSQL.org>
Subject: RE: [PORTS] Re: psql under win32
Date: Wed, 21 Apr 1999 07:07:47 +0200
Message-ID: <000001be8bb4$e59b0ab0$0300a8c0@abraracourcix.askesis.nl>
MIME-Version: 1.0
Installing PostgreSQL on NT:
---------------------------------------------------------------------------
It can be done by done by typing configure, make and make install.
1. Install the Cygwin package
2. Update to EGCS 1.1.2
1999-07-07 18:41:18 +02:00
(This may be optional.)
1999-06-16 20:09:59 +02:00
1999-09-27 21:55:48 +02:00
---------------------------------------------------------------------------
OPTIONAL
1999-07-07 18:41:18 +02:00
1. Install the Andy Piper Tools (http://www.xemacs.freeserve.co.uk/)
(This may be optional.)
1999-06-16 20:09:59 +02:00
1999-09-27 21:55:48 +02:00
---------------------------------------------------------------------------
CYGWIN32 INSTALLATION
1999-07-07 18:41:18 +02:00
1. Download the Cygwin32 IPC Package by Ludovic LANGE
1999-07-18 20:03:50 +02:00
http://www.multione.capgemini.fr:80/tools/pack_ipc/current.tar.gz
1999-06-16 20:09:59 +02:00
2. Untar the package and follow the readme instructions.
1999-09-28 03:43:00 +02:00
3. Apply the patch pgsql/src/win32/ipc.patch to the CygWin32 sources
before compiling CygWin32.
1999-09-27 21:55:48 +02:00
4. I tested 1.03.
5. I used the \cygwin-b20\h-i568-cygwin32\i586-cygwin32\lib and
1999-06-16 20:09:59 +02:00
\cygwin-b20\h-i568-cygwin32\i586-cygwin32\include\sys instead of the
/usr/local/lib and usr/local/include/sys.
1999-09-27 21:55:48 +02:00
NOTE:
Also, the cygnus-bindir has to be placed in the path before the
NT-directories, because the sort.exe has to be taken for cygnus, not
NT.
---------------------------------------------------------------------------
POSTGRESQL INSTALL WITH NT SPECIFICS
1999-07-07 18:41:18 +02:00
1. Download the current version of PostgreSQL.
1999-06-16 20:09:59 +02:00
2. Untar the package.
3. Copy the files from \pgsql\src\win32 according to the readme file.
1999-09-27 21:55:48 +02:00
4. Edit \pgsql\src\template\cygwin32 if needed (I had to adjust the YFLAGS
1999-06-16 20:09:59 +02:00
path).
1999-09-27 21:55:48 +02:00
5. ./configure
6. make
7. create the directory /usr/local/pgsql manually: the mkdir cannot create a
1999-06-16 20:09:59 +02:00
directory 2 levels deep in one step.
1999-09-27 21:55:48 +02:00
8. make install
9. cd /usr/lical/pgsql/doc
10. make install
11. Set the environmental data
12. Initdb --username=jkr (do not run this command as administrator)
1999-06-16 20:09:59 +02:00
1999-09-27 21:55:48 +02:00
13. Open a new Cygwin command prompt
14. Start "ipc-deamon&" (background proces)
15. Start "postmaster -i 2>&1 > /tmp/postgres.log &" (background proces)
16. Start "tail -f /tmp/postgres.log" to see the messages
1999-06-16 20:09:59 +02:00
1999-09-27 21:55:48 +02:00
17. cd /usr/src/pgsql/src/test/regress
18. make all runtest
1999-06-16 20:09:59 +02:00
All test should be run, allthought the latest snapshot I tested (18-4)
appears to have some problems with locking.
1999-09-27 21:55:48 +02:00
NOTE:
By default, PostgreSQL clients like psql communicate using unix domain
sockets, which don't work on NT. Start the postmaster with -i, and
when connecting to the database from a client, set the PGHOST
1999-07-09 23:46:14 +02:00
environment variable to 'localhost' or supply the hostname on the
command line.
1999-06-16 20:09:59 +02:00
1999-09-27 21:55:48 +02:00
Joost