gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 line
6.1KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 17. Installation from Source Code on Windows</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="installation-platform-notes.html" title="16.7. Platform-Specific Notes" /><link rel="next" href="install-windows-full.html" title="17.1. Building with Visual C++ or the Microsoft Windows SDK" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">Chapter 17. Installation from Source Code on <span xmlns="http://www.w3.org/1999/xhtml" class="productname">Windows</span></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="installation-platform-notes.html" title="16.7. Platform-Specific Notes">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="admin.html" title="Part III. Server Administration">Up</a></td><th width="60%" align="center">Part III. Server Administration</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="install-windows-full.html" title="17.1. Building with Visual C++ or the&#10; Microsoft Windows SDK">Next</a></td></tr></table><hr></hr></div><div class="chapter" id="INSTALL-WINDOWS"><div class="titlepage"><div><div><h2 class="title">Chapter 17. Installation from Source Code on <span class="productname">Windows</span></h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="install-windows-full.html">17.1. Building with <span class="productname">Visual C++</span> or the
  3. <span class="productname">Microsoft Windows SDK</span></a></span></dt><dd><dl><dt><span class="sect2"><a href="install-windows-full.html#id-1.6.4.8.8">17.1.1. Requirements</a></span></dt><dt><span class="sect2"><a href="install-windows-full.html#id-1.6.4.8.9">17.1.2. Special Considerations for 64-Bit Windows</a></span></dt><dt><span class="sect2"><a href="install-windows-full.html#id-1.6.4.8.10">17.1.3. Building</a></span></dt><dt><span class="sect2"><a href="install-windows-full.html#id-1.6.4.8.11">17.1.4. Cleaning and Installing</a></span></dt><dt><span class="sect2"><a href="install-windows-full.html#id-1.6.4.8.12">17.1.5. Running the Regression Tests</a></span></dt></dl></dd></dl></div><a id="id-1.6.4.2" class="indexterm"></a><p>
  4. It is recommended that most users download the binary distribution for
  5. Windows, available as a graphical installer package
  6. from the <span class="productname">PostgreSQL</span> website. Building from source
  7. is only intended for people developing <span class="productname">PostgreSQL</span>
  8. or extensions.
  9. </p><p>
  10. There are several different ways of building PostgreSQL on
  11. <span class="productname">Windows</span>. The simplest way to build with
  12. Microsoft tools is to install <span class="productname">Visual Studio 2019</span>
  13. and use the included compiler. It is also possible to build with the full
  14. <span class="productname">Microsoft Visual C++ 2013 to 2019</span>.
  15. In some cases that requires the installation of the
  16. <span class="productname">Windows SDK</span> in addition to the compiler.
  17. </p><p>
  18. It is also possible to build PostgreSQL using the GNU compiler tools
  19. provided by <span class="productname">MinGW</span>, or using
  20. <span class="productname">Cygwin</span> for older versions of
  21. <span class="productname">Windows</span>.
  22. </p><p>
  23. Building using <span class="productname">MinGW</span> or
  24. <span class="productname">Cygwin</span> uses the normal build system, see
  25. <a class="xref" href="installation.html" title="Chapter 16. Installation from Source Code">Chapter 16</a> and the specific notes in
  26. <a class="xref" href="installation-platform-notes.html#INSTALLATION-NOTES-MINGW" title="16.7.4. MinGW/Native Windows">Section 16.7.4</a> and <a class="xref" href="installation-platform-notes.html#INSTALLATION-NOTES-CYGWIN" title="16.7.2. Cygwin">Section 16.7.2</a>.
  27. To produce native 64 bit binaries in these environments, use the tools from
  28. <span class="productname">MinGW-w64</span>. These tools can also be used to
  29. cross-compile for 32 bit and 64 bit <span class="productname">Windows</span>
  30. targets on other hosts, such as <span class="productname">Linux</span> and
  31. <span class="productname">macOS</span>.
  32. <span class="productname">Cygwin</span> is not recommended for running a
  33. production server, and it should only be used for running on
  34. older versions of <span class="productname">Windows</span> where
  35. the native build does not work, such as
  36. <span class="productname">Windows 98</span>. The official
  37. binaries are built using <span class="productname">Visual Studio</span>.
  38. </p><p>
  39. Native builds of <span class="application">psql</span> don't support command
  40. line editing. The <span class="productname">Cygwin</span> build does support
  41. command line editing, so it should be used where psql is needed for
  42. interactive use on <span class="productname">Windows</span>.
  43. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="installation-platform-notes.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="admin.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="install-windows-full.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">16.7. Platform-Specific Notes </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 17.1. Building with <span class="productname">Visual C++</span> or the
  44. <span class="productname">Microsoft Windows SDK</span></td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1