On a Debian-based system, install the following packages:
~$ sudo apt-get install libpq-dev postgresql
On a Red Hat-based system, install the following packages:
~$ sudo yum install postgresql postgresql-devel
{% include 'notebox_begin' %} If you intend to use specific versions of these packages from Software Collections, you may have to adapt some of the package names to match. For example:
~$ sudo yum install postgresql92 postgresql92-postgresql-devel
{% include 'notebox_end' %}