Setup PostgreSQL and its libraries to work with rails Published On - November 27, 2012 coderhs sudo apt-get install postgresql libpq-dev CentOS / RedHat yum install postgresql libpg-dev Trying gem install pg, should install everything smootly.. Happy Coding.. :)]]>