> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/19/server-administration/installation.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# 第 17 章 從原始碼安裝

### 第 17 章 從原始碼安裝

**目錄**

* [17.1. 需求](https://docs.postgresql.tw/19/server-administration/installation/install-requirements.md)
* [17.2. 取得原始碼](https://docs.postgresql.tw/19/server-administration/installation/install-getsource.md)
* [17.3. 以 Autoconf 與 Make 建置與安裝](https://docs.postgresql.tw/19/server-administration/installation/install-make.md)
  * [17.3.1. 精簡版](https://docs.postgresql.tw/19/server-administration/installation/install-make.md#install-short-make)
  * [17.3.2. 安裝程序](https://docs.postgresql.tw/19/server-administration/installation/install-make.md#install-procedure-make)
  * [17.3.3. `configure` 選項](https://docs.postgresql.tw/19/server-administration/installation/install-make.md#configure-options)
  * [17.3.4. `configure` 環境變數](https://docs.postgresql.tw/19/server-administration/installation/install-make.md#configure-envvars)
* [17.4. 使用 Meson 建置與安裝](https://docs.postgresql.tw/19/server-administration/installation/install-meson.md)
  * [17.4.1. 簡短版本](https://docs.postgresql.tw/19/server-administration/installation/install-meson.md#install-short-meson)
  * [17.4.2. 安裝程序](https://docs.postgresql.tw/19/server-administration/installation/install-meson.md#install-procedure-meson)
  * [17.4.3. `meson setup` 選項](https://docs.postgresql.tw/19/server-administration/installation/install-meson.md#meson-options)
  * [17.4.4. `meson` 建置目標](https://docs.postgresql.tw/19/server-administration/installation/install-meson.md#targets-meson)
* [17.5. 安裝後設定](https://docs.postgresql.tw/19/server-administration/installation/install-post.md)
  * [17.5.1. 共用函式庫](https://docs.postgresql.tw/19/server-administration/installation/install-post.md#install-post-shlibs)
  * [17.5.2. 環境變數](https://docs.postgresql.tw/19/server-administration/installation/install-post.md#install-post-env-vars)
* [17.6. 受支援的平台](https://docs.postgresql.tw/19/server-administration/installation/supported-platforms.md)
* [17.7. 特定平台注意事項](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md)
  * [17.7.1. Cygwin](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md#installation-notes-cygwin)
  * [17.7.2. macOS](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md#installation-notes-macos)
  * [17.7.3. MinGW](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md#installation-notes-mingw)
  * [17.7.4. Solaris](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md#installation-notes-solaris)
  * [17.7.5. Visual Studio](https://docs.postgresql.tw/19/server-administration/installation/installation-platform-notes.md#installation-notes-visual-studio)

本章說明如何使用原始碼發行版安裝 PostgreSQL。如果你要安裝的是預先封裝好的發行版， 例如 RPM 或 Debian 套件，請略過本章， 改為參閱[第 16 章](https://docs.postgresql.tw/19/server-administration/install-binaries.md)。

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/installation.html)（原文版本：18.6；核對日期：2026-10-10）


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/19/server-administration/installation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
