2
$PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.23 2004-12-27 20:13:47 tgl Exp $
5
<chapter id="install-win32">
6
<title>Client-Only Installation on <productname>Windows</productname></title>
9
<primary>installation</primary>
10
<secondary>on Windows</secondary>
14
Although a complete <productname>PostgreSQL</productname> installation
15
for <productname>Windows</> can only be built using
16
<productname>MinGW</productname> or
17
<productname>Cygwin</productname>, the C client library
18
(<application>libpq</application>) and the interactive terminal
19
(<application>psql</application>) can be compiled using other Windows
20
tool sets. Makefiles are included in the source distribution for
21
<productname>Microsoft Visual C++</productname> and
22
<productname>Borland C++</productname>. It should be possible to
23
compile the libraries manually for other configurations.
28
Using <productname>MinGW</productname> or
29
<productname>Cygwin</productname> is preferred. If using one of
30
those tool sets, see <xref linkend="installation">.
35
To build everything that you can on <productname>Windows</productname>
36
using <productname>Microsoft Visual C++</productname>, change into the
37
<filename>src</filename> directory and type the command
39
<userinput>nmake /f win32.mak</userinput>
41
This assumes that you have <productname>Visual C++</productname> in
46
To build everything using <productname>Borland
47
C++</productname>, change into the <filename>src</filename> directory
50
<userinput>make -DCFG=Release /f bcc32.mak</userinput>
55
The following files will be built:
59
<term><filename>interfaces\libpq\Release\libpq.dll</filename></term>
62
The dynamically linkable frontend library
68
<term><filename>interfaces\libpq\Release\libpqdll.lib</filename></term>
71
Import library to link your programs to <filename>libpq.dll</filename>
77
<term><filename>interfaces\libpq\Release\libpq.lib</filename></term>
80
Static version of the frontend library
86
<term><filename>bin\psql\Release\psql.exe</filename></term>
89
The <productname>PostgreSQL</productname> interactive terminal
97
The only file that really needs to be installed is the
98
<filename>libpq.dll</filename> library. This file should in most
99
cases be placed in the <filename>WINNT\SYSTEM32</filename> directory
100
(or in <filename>WINDOWS\SYSTEM</filename> on a Windows 95/98/ME
101
system). If this file is installed using a setup program, it should
102
be installed with version checking using the
103
<symbol>VERSIONINFO</symbol> resource included in the file, to
104
ensure that a newer version of the library is not overwritten.
108
If you plan to do development using <application>libpq</application>
109
on this machine, you will have to add the
110
<filename>src\include</filename> and
111
<filename>src\interfaces\libpq</filename> subdirectories of the source
112
tree to the include path in your compiler's settings.
116
To use the library, you must add the
117
<filename>libpqdll.lib</filename> file to your project. (In Visual
118
C++, just right-click on the project and choose to add it.)
123
<!-- Keep this comment at the end of the file
128
sgml-minimize-attributes:nil
129
sgml-always-quote-attributes:t
132
sgml-parent-document:nil
133
sgml-default-dtd-file:"./reference.ced"
134
sgml-exposed-tags:nil
135
sgml-local-catalogs:("/usr/lib/sgml/catalog")
136
sgml-local-ecat-files:nil