title: Missing libpq header files on CentOS when attempting to install psycopg2 module
body: <p>I have been searching the web hours on end for several days and I am unable to install psycopg2 library on my Linux machine (CentOS - 2.6.32-431.3.1.el6.x86_64 GNU/Linux).</p>
  
  <p>I know that the problem is that I am missing the libpq header files since I am getting this message after attempting pip install psycopg2: <code>libpq-fe.h: No such file or directory</code></p>
  
  <p><a href="http://initd.org/psycopg/docs/install.html#install-from-source" rel="nofollow">http://initd.org/psycopg/docs/install.html#install-from-source</a></p>
  
  <p>Almost all the articles I found pointed me to use apt-get on CentOS but apt-get is not a standard tool on CentOS 6.3 so I've been trying <code>yum install</code> instead.</p>
  
  <p>However, every time I try to use <code>sudo yum install</code> to download something the package is not available. For example:</p>
  
  <p><code>yum install postgresql-devel
  Loaded plugins: fastestmirror, refresh-packagekit, security
  Setting up Install Process
  Loading mirror speeds from cached hostfile
  drivesrvr                                                         | 2.2 kB     00:00
  No package postgresql-devel available.
  Error: Nothing to do</code></p>
  
  <p>I've tried this for:</p>
  
  <ol>
  <li>yum install postgresql-server</li>
  <li>yum install python-devel</li>
  <li>service postgresql initdb</li>
  <li>service postgresql start</li>
  <li>yum install python-psycopg2</li>
  </ol>
  
  <p>Any ideas? Without the the libpq header files I can't install the psycopg2 module that is necessary for my Python program. This is for Python 2.7.12. And PostgreSQL 9.3.13.</p>