Compile and Install from source code

From PostgreSQL wiki

(Difference between revisions)
Jump to: navigation, search
(Redhat)
(Per OS instructions)
Line 16: Line 16:
 
  sudo yum install -y bison-devel readline-devel zlib-devel openssl-devel wget
 
  sudo yum install -y bison-devel readline-devel zlib-devel openssl-devel wget
 
  sudo yum groupinstall -y 'Development Tools'
 
  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

Revision as of 23:39, 12 November 2013

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