I am learning Ruby on Rails and trying to develop an application. In my application I am trying to use the default SQLite database in the Development Mode a
for those who reached this by google search if libpq-dev didnt work or threw another errors i hade the same problem try upgrading your system and get the ruby div-kit
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ruby1.9.1-dev
then reboot after this just try again
...
If you are using Ubuntu try to install following lib file
sudo apt-get install libpq-dev
and then gem install pg
worked for me.
You have to do this
sudo apt-get install libgmp-dev libpq-dev
and then
gem install pg