My DB is PostgreSQL.I am on CENTOS.... While installing the pg gem I received the following error. I reinstalled to clear my YAML problem also, which didn\'t work, but it is jus
First install
sudo apt-get install postgresql postgresql-server-dev-9.1
Next install
sudo apt-get install libpq-dev
Then install gem install pg
gem install pg