Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8f89113d
Commit
8f89113d
authored
Dec 21, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates
parent
d7b16103
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
86 deletions
+97
-86
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+97
-86
No files found.
doc/src/sgml/install-win32.sgml
View file @
8f89113d
<chapter id="install-win32">
<chapter id="install-win32">
<title>Installation on Win32
</title>
<title>Installation on <productname>Windows</productname>
</title>
<abstract>
<abstract>
<para>
<para>
Build and installation instructions for <productname>Postgres</productname>
Build, installation, and use instructions for
v6.4 client libraries on Win32.
<productname>PostgreSQL</productname> client libraries on
<productname>Windows</productname>
</para>
</para>
</abstract>
</abstract>
<sect1 id="win32-install-build">
<para>
<title>Building the libraries</title>
Although <productname>PostgreSQL</productname> is written for
Unix-like operating systems, the C client library
(<application>libpq</application>) and the interactive terminal
(<application>psql</application>) can be compiled natively under
Windows. The makefiles included in the source distribution are
written for <productname>Microsoft Visual C++</productname> and will
probably not work with other systems. It should be possible to
compile the libaries manually in other cases.
</para>
<tip>
<para>
<para>
The makefiles included in <productname>Postgres</productname> are written
If you are using Windows NT/2000 you can build and use all of
for <productname>Microsoft Visual C++</productname>, and will probably
<productname>PostgreSQL</productname> <quote>the Unix way</quote>
not work with other systems. It should be possible to compile the libaries
if you install the <productname>Cygwin</productname> toolkit first.
manually in other cases
.
In that case see <xref linkend="installation">
.
</para>
</para>
</tip>
<para>
<para>
To build the libraries, change directory into the <filename>src</filename>
To build everything that you can on
directory, and type the commands
<productname>Windows</productname>, change into the
<programlisting>
<filename>src</filename> directory and type the command
copy include\config.h.win32 include\config.h
<screen>
nmake /f win32.mak
<userinput>nmake /f win32.mak</userinput>
</programlisting
>
</screen
>
This assumes that you have <productname>Visual C++</productname> in your
This assumes that you have <productname>Visual C++</productname> in
path.
your
path.
</para>
</para>
<para>
<para>
The following files will be built:
The following files will be built:
<itemizedlist spacing="compact" mark="bullet">
<variablelist>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpq.dll</filename></term>
<listitem>
<listitem>
<para>
<para>
<filename>interfaces\libpq\Release\libpq.dll</filename>
The dynamically linkable frontend library
- The dynamically linkable frontend library
</para>
</para>
</listitem>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpqdll.lib</filename></term>
<listitem>
<listitem>
<para>
<para>
<filename>interfaces\libpq\Release\libpqdll.lib</filename>
Import library to link your program to <filename>libpq.dll</filename>
- Import library to link your program to libpq.dll
</para>
</para>
</listitem>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpq.lib</filename></term>
<listitem>
<listitem>
<para>
<para>
<filename>interfaces\libpq\Release\libpq.lib</filename> -
Static library version of the frontend library
Static library version of the frontend library
</para>
</para>
</listitem>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>bin\psql\Release\psql.exe</filename></term>
<listitem>
<listitem>
<para>
<para>
<filename>bin\psql\Release\psql.exe</filename> - The <productname>Postgresql</productname> interactive SQL monitor
The <productname>PostgreSQL</productname> interactive terminal
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</itemized
list>
</variable
list>
</para>
</para>
</sect1>
<sect1 id="win32-install-install">
<title>Installing the libraries</title>
<para>
<para>
The only part of the library to really be installed is the
The only file that really needs to be installed is the
<filename>libpq.dll</filename> library. This file should in most cases
<filename>libpq.dll</filename> library. This file should in most
be placed in the <filename>WINNT\SYSTEM32</filename> directory (or in
cases be placed in the <filename>WINNT\SYSTEM32</filename> directory
<filename>WINDOWS\SYSTEM</filename> on a Windows 95/98 system). If this
(or in <filename>WINDOWS\SYSTEM</filename> on a Windows 95/98/ME
file is installed using a setup program, it should be installed with
system). If this file is installed using a setup program, it should
version checking using the VERSIONINFO resource included in the file,
be installed with version checking using the
to ensure that a newer version of the library is not overwritten.
<symbol>VERSIONINFO</symbol> resource included in the file, to
ensure that a newer version of the library is not overwritten.
</para>
</para>
<para>
If you plan to do development using libpq on this machine, you will have
to add the <filename>src\include</filename> and
<filename>src\interfaces\libpq</filename> directories to the include
path in your compilers settings.
</para>
</sect1>
<sect1 id="win32-install-use">
<title>Using the libraries</title>
<para>
<para>
To use the libraries, you must add the <filename>libpqdll.lib</filename>
If you plan to do development using libpq on this machine, you will
file to your project (in Visual C++, just right-click on the project and
have to add the <filename>src\include</filename> and
chose to add it).
<filename>src\interfaces\libpq</filename> subdirectories of the
source tree to the include path in your compilers settings.
</para>
</para>
<para>
<para>
Once this is done, it should be possible to use the library just as you
To use the libraries, you must add the
would on a Unix platform.
<filename>libpqdll.lib</filename> file to your project. (In Visual
C++, just right-click on the project and chose to add it.)
</para>
</para>
</sect1>
</chapter>
</chapter>
<!-- Keep this comment at the end of the file
<!-- Keep this comment at the end of the file
Local variables:
Local variables:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment