Chapter 17. Installation from Source Code

|Chapter 17. Installation from Source Code|                |                               |                  |                           |
|:---------------------------------------:|----------------|-------------------------------|------------------|---------------------------|
|      [Prev](install-binaries.html)      |[Up](admin.html)|Part III. Server Administration|[Home](index.html)| [Next](install-short.html)|

---

## Chapter 17. Installation from Source Code

**Table of Contents**

[17.1. Short Version](install-short.html)[17.2. Requirements](install-requirements.html)[17.3. Getting the Source](install-getsource.html)[17.4. Installation Procedure](install-procedure.html)[17.4.1. `configure` Options](install-procedure.html#CONFIGURE-OPTIONS)[17.4.2. `configure` Environment Variables](install-procedure.html#CONFIGURE-ENVVARS)[17.5. Post-Installation Setup](install-post.html)[17.5.1. Shared Libraries](install-post.html#INSTALL-POST-SHLIBS)[17.5.2. Environment Variables](install-post.html#id-1.6.4.9.3)[17.6. Supported Platforms](supported-platforms.html)[17.7. Platform-Specific Notes](installation-platform-notes.html)[17.7.1. AIX](installation-platform-notes.html#INSTALLATION-NOTES-AIX)[17.7.2. Cygwin](installation-platform-notes.html#INSTALLATION-NOTES-CYGWIN)[17.7.3. macOS](installation-platform-notes.html#INSTALLATION-NOTES-MACOS)[17.7.4. MinGW/Native Windows](installation-platform-notes.html#INSTALLATION-NOTES-MINGW)[17.7.5. Solaris](installation-platform-notes.html#INSTALLATION-NOTES-SOLARIS)

[]()

 This chapter describes the installation of PostgreSQL using the source code distribution. If you are installing a pre-packaged distribution, such as an RPM or Debian package, ignore this chapter and see [Chapter 16](install-binaries.html) instead.

 If you are building PostgreSQL for Microsoft Windows, read this chapter if you intend to build with MinGW or Cygwin; but if you intend to build with Microsoft's Visual C++, see [Chapter 18](install-windows.html) instead.

---

|    [Prev](install-binaries.html)     | [Up](admin.html) | [Next](install-short.html)|
|:-------------------------------------|:----------------:|--------------------------:|
|Chapter 16. Installation from Binaries|[Home](index.html)|    17.1. Short Version    |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>