Skip to content

Commit

Permalink
Added installation instructions for postgres on CentOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsRC committed Dec 5, 2015
1 parent 6863466 commit 44b2bf9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions docs/postgres.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,28 @@ encoding use, e.g.::
This would create an appropriate database named ``synapse`` owned by the
``synapse_user`` user (which must already exist).

Set up client
=============
Set up client in Debian/Ubuntu
===========================

Postgres support depends on the postgres python connector ``psycopg2``. In the
virtual env::

sudo apt-get install libpq-dev
pip install psycopg2

Set up client in RHEL/CentOs 7
==============================

Make sure you have the appropriate version of postgres-devel installed. For a
postgres 9.4, use the postgres 9.4 packages from
[here](https://wiki.postgresql.org/wiki/YUM_Installation).

As with Debian/Ubuntu, postgres support depends on the postgres python connector
``psycopg2``. In the virtual env::

sudo yum install postgresql-devel libpqxx-devel.x86_64
export PATH=/usr/pgsql-9.4/bin/:$PATH
pip install psycopg2

Synapse config
==============
Expand Down

0 comments on commit 44b2bf9

Please sign in to comment.