Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Installation

Ivan edited this page Feb 5, 2016 · 1 revision

To install PostgreSQL on Linux systems, first install the following packages (here for Ubuntu):

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

Then proceed, as usual with configure, make, make install. See also the PostgreSQL installation procedure guide.

To start up a database proceed as follows:

adduser postgres
mkdir /data
chown postgres /data
su - postgres
./initdb -D /data
./postgres -D /data >logfile 2>&1 &
./createdb test
./psql test
Clone this wiki locally