Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
8f89113d
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8f89113d
编写于
12月 21, 2000
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updates
上级
d7b16103
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
97 addition
and
86 deletion
+97
-86
doc/src/sgml/install-win32.sgml
doc/src/sgml/install-win32.sgml
+97
-86
未找到文件。
doc/src/sgml/install-win32.sgml
浏览文件 @
8f89113d
<chapter id="install-win32">
<title>Installation on Win32
</title>
<chapter id="install-win32">
<title>Installation on <productname>Windows</productname>
</title>
<abstract>
<para>
Build and installation instructions for <productname>Postgres</productname>
v6.4 client libraries on Win32.
</para>
</abstract>
<abstract>
<para>
Build, installation, and use instructions for
<productname>PostgreSQL</productname> client libraries on
<productname>Windows</productname>
</para>
</abstract>
<sect1 id="win32-install-build">
<title>Building the libraries</title>
<para>
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>
<para>
The makefiles included in <productname>Postgres</productname> 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>
If you are using Windows NT/2000 you can build and use all of
<productname>PostgreSQL</productname> <quote>the Unix way</quote>
if you install the <productname>Cygwin</productname> toolkit first.
In that case see <xref linkend="installation">.
</para>
</tip>
<para>
To build the libraries, change directory into the <filename>src</filename>
directory, and type the commands
<programlisting>
copy include\config.h.win32 include\config.h
nmake /f win32.mak
</programlisting
>
This assumes that you have <productname>Visual C++</productname> in your
path.
</para>
<para>
To build everything that you can on
<productname>Windows</productname>, change into the
<filename>src</filename> directory and type the command
<screen>
<userinput>nmake /f win32.mak</userinput>
</screen
>
This assumes that you have <productname>Visual C++</productname> in
your
path.
</para>
<para>
The following files will be built:
<para>
The following files will be built:
<itemizedlist spacing="compact" mark="bullet">
<listitem>
<para>
<filename>interfaces\libpq\Release\libpq.dll</filename>
- The dynamically linkable frontend library
</para>
</listitem>
<variablelist>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpq.dll</filename></term>
<listitem>
<para>
The dynamically linkable frontend library
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpqdll.lib</filename></term>
<listitem>
<para>
Import library to link your program to <filename>libpq.dll</filename>
</para>
</listitem>
</varlistentry>
<listitem>
<para>
<filename>interfaces\libpq\Release\libpqdll.lib</filename>
- Import library to link your program to libpq.dll
</para>
</listitem>
<varlistentry>
<term><filename>interfaces\libpq\Release\libpq.lib</filename></term>
<listitem>
<para>
Static library version of the frontend library
</para>
</listitem>
</varlistentry>
<listitem>
<para>
<filename>interfaces\libpq\Release\libpq.lib</filename> - Static library version of the frontend library
</para>
</listitem>
<varlistentry>
<term><filename>bin\psql\Release\psql.exe</filename></term>
<listitem>
<para>
The <productname>PostgreSQL</productname> interactive terminal
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<listitem>
<para>
<filename>bin\psql\Release\psql.exe</filename> - The <productname>Postgresql</productname> interactive SQL monitor
</para>
</listitem>
<para>
The only file that really needs to be installed is the
<filename>libpq.dll</filename> library. This file should in most
cases be placed in the <filename>WINNT\SYSTEM32</filename> directory
(or in <filename>WINDOWS\SYSTEM</filename> on a Windows 95/98/ME
system). If this file is installed using a setup program, it should
be installed with version checking using the
<symbol>VERSIONINFO</symbol> resource included in the file, to
ensure that a newer version of the library is not overwritten.
</para>
</itemizedlist>
</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> subdirectories of the
source tree to the include path in your compilers settings.
</para>
</sect1>
<para>
To use the libraries, you must add the
<filename>libpqdll.lib</filename> file to your project. (In Visual
C++, just right-click on the project and chose to add it.)
</para>
<sect1 id="win32-install-install">
<title>Installing the libraries</title>
<para>
The only part of the library to really be installed is the
<filename>libpq.dll</filename> library. This file should in most cases
be placed in the <filename>WINNT\SYSTEM32</filename> directory (or in
<filename>WINDOWS\SYSTEM</filename> on a Windows 95/98 system). If this
file is installed using a setup program, it should be installed with
version checking using the VERSIONINFO resource included in the file,
to ensure that a newer version of the library is not overwritten.
</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>
To use the libraries, you must add the <filename>libpqdll.lib</filename>
file to your project (in Visual C++, just right-click on the project and
chose to add it).
</para>
<para>
Once this is done, it should be possible to use the library just as you
would on a Unix platform.
</para>
</sect1>
</chapter>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录