Compile and Install from source code

From PostgreSQL wiki

Revision as of 23:39, 12 November 2013 by Selena (Talk | contribs)

Jump to: navigation, search

These are a set of instructions for building Postgres from a source archive.

Contents

Acquire the source code

From Github

The mirror of Postgres on Github provides a "download a zip archive"

Per OS instructions

Redhat

The following packages are needed for building Postgres, including ssl support:

sudo yum install -y bison-devel readline-devel zlib-devel openssl-devel wget
sudo yum groupinstall -y 'Development Tools'

Ubuntu

The following packages are needed for building Postgres, including ssl support:

sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev libssl-dev
Personal tools