Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f89113

Browse files
committed
Updates
1 parentd7b1610 commit8f89113

File tree

1 file changed

+97
-86
lines changed

1 file changed

+97
-86
lines changed

‎doc/src/sgml/install-win32.sgml

Lines changed: 97 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,112 @@
1-
<chapter id="install-win32">
2-
<title>Installation onWin32</title>
1+
<chapter id="install-win32">
2+
<title>Installation on<productname>Windows</productname></title>
33

4-
<abstract>
5-
<para>
6-
Build and installation instructions for <productname>Postgres</productname>
7-
v6.4 client libraries on Win32.
8-
</para>
9-
</abstract>
4+
<abstract>
5+
<para>
6+
Build, installation, and use instructions for
7+
<productname>PostgreSQL</productname> client libraries on
8+
<productname>Windows</productname>
9+
</para>
10+
</abstract>
1011

11-
<sect1 id="win32-install-build">
12-
<title>Building the libraries</title>
12+
<para>
13+
Although <productname>PostgreSQL</productname> is written for
14+
Unix-like operating systems, the C client library
15+
(<application>libpq</application>) and the interactive terminal
16+
(<application>psql</application>) can be compiled natively under
17+
Windows. The makefiles included in the source distribution are
18+
written for <productname>Microsoft Visual C++</productname> and will
19+
probably not work with other systems. It should be possible to
20+
compile the libaries manually in other cases.
21+
</para>
1322

14-
<para>
15-
The makefiles included in <productname>Postgres</productname> are written
16-
for <productname>Microsoft Visual C++</productname>, and will probably
17-
not work with other systems. It should be possible to compile the libaries
18-
manually in other cases.
19-
</para>
23+
<tip>
24+
<para>
25+
If you are using Windows NT/2000 you can build and use all of
26+
<productname>PostgreSQL</productname> <quote>the Unix way</quote>
27+
if you install the <productname>Cygwin</productname> toolkit first.
28+
In that case see <xref linkend="installation">.
29+
</para>
30+
</tip>
2031

21-
<para>
22-
To buildthe libraries, change directory into the <filename>src</filename>
23-
directory, and type the commands
24-
<programlisting>
25-
copy include\config.h.win32 include\config.h
26-
nmake /f win32.mak
27-
</programlisting>
28-
This assumes that you have <productname>Visual C++</productname> in your
29-
path.
30-
</para>
32+
<para>
33+
To buildeverything that you can on
34+
<productname>Windows</productname>, change into the
35+
<filename>src</filename> directory and type the command
36+
<screen>
37+
<userinput>nmake /f win32.mak</userinput>
38+
</screen>
39+
This assumes that you have <productname>Visual C++</productname> in
40+
your path.
41+
</para>
3142

32-
<para>
33-
The following files will be built:
43+
<para>
44+
The following files will be built:
3445

35-
<itemizedlist spacing="compact" mark="bullet">
36-
<listitem>
37-
<para>
38-
<filename>interfaces\libpq\Release\libpq.dll</filename>
39-
- The dynamically linkable frontend library
40-
</para>
41-
</listitem>
46+
<variablelist>
47+
<varlistentry>
48+
<term><filename>interfaces\libpq\Release\libpq.dll</filename></term>
49+
<listitem>
50+
<para>
51+
The dynamically linkable frontend library
52+
</para>
53+
</listitem>
54+
</varlistentry>
55+
56+
<varlistentry>
57+
<term><filename>interfaces\libpq\Release\libpqdll.lib</filename></term>
58+
<listitem>
59+
<para>
60+
Import library to link your program to <filename>libpq.dll</filename>
61+
</para>
62+
</listitem>
63+
</varlistentry>
4264

43-
<listitem>
44-
<para>
45-
<filename>interfaces\libpq\Release\libpqdll.lib</filename>
46-
- Import library to link your program to libpq.dll
47-
</para>
48-
</listitem>
65+
<varlistentry>
66+
<term><filename>interfaces\libpq\Release\libpq.lib</filename></term>
67+
<listitem>
68+
<para>
69+
Static library version of the frontend library
70+
</para>
71+
</listitem>
72+
</varlistentry>
4973

50-
<listitem>
51-
<para>
52-
<filename>interfaces\libpq\Release\libpq.lib</filename> - Static library version of the frontend library
53-
</para>
54-
</listitem>
74+
<varlistentry>
75+
<term><filename>bin\psql\Release\psql.exe</filename></term>
76+
<listitem>
77+
<para>
78+
The <productname>PostgreSQL</productname> interactive terminal
79+
</para>
80+
</listitem>
81+
</varlistentry>
82+
</variablelist>
83+
</para>
5584

56-
<listitem>
57-
<para>
58-
<filename>bin\psql\Release\psql.exe</filename> - The <productname>Postgresql</productname> interactive SQL monitor
59-
</para>
60-
</listitem>
85+
<para>
86+
The only file that really needs to be installed is the
87+
<filename>libpq.dll</filename> library. This file should in most
88+
cases be placed in the <filename>WINNT\SYSTEM32</filename> directory
89+
(or in <filename>WINDOWS\SYSTEM</filename> on a Windows 95/98/ME
90+
system). If this file is installed using a setup program, it should
91+
be installed with version checking using the
92+
<symbol>VERSIONINFO</symbol> resource included in the file, to
93+
ensure that a newer version of the library is not overwritten.
94+
</para>
6195

62-
</itemizedlist>
63-
</para>
96+
<para>
97+
If you plan to do development using libpq on this machine, you will
98+
have to add the <filename>src\include</filename> and
99+
<filename>src\interfaces\libpq</filename> subdirectories of the
100+
source tree to the include path in your compilers settings.
101+
</para>
64102

65-
</sect1>
103+
<para>
104+
To use the libraries, you must add the
105+
<filename>libpqdll.lib</filename> file to your project. (In Visual
106+
C++, just right-click on the project and chose to add it.)
107+
</para>
66108

67-
<sect1 id="win32-install-install">
68-
<title>Installing the libraries</title>
69-
<para>
70-
The only part of the library to really be installed is the
71-
<filename>libpq.dll</filename> library. This file should in most cases
72-
be placed in the <filename>WINNT\SYSTEM32</filename> directory (or in
73-
<filename>WINDOWS\SYSTEM</filename> on a Windows 95/98 system). If this
74-
file is installed using a setup program, it should be installed with
75-
version checking using the VERSIONINFO resource included in the file,
76-
to ensure that a newer version of the library is not overwritten.
77-
</para>
78-
<para>
79-
If you plan to do development using libpq on this machine, you will have
80-
to add the <filename>src\include</filename> and
81-
<filename>src\interfaces\libpq</filename> directories to the include
82-
path in your compilers settings.
83-
</para>
84-
</sect1>
85-
86-
<sect1 id="win32-install-use">
87-
<title>Using the libraries</title>
88-
<para>
89-
To use the libraries, you must add the <filename>libpqdll.lib</filename>
90-
file to your project (in Visual C++, just right-click on the project and
91-
chose to add it).
92-
</para>
93-
<para>
94-
Once this is done, it should be possible to use the library just as you
95-
would on a Unix platform.
96-
</para>
97-
</sect1>
98-
</chapter>
109+
</chapter>
99110

100111
<!-- Keep this comment at the end of the file
101112
Local variables:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp