I tried using gem install pg but it doesn\'t seem to work.
gem install pg
gem install pg gives this error
Temporarily enhancing PATH to in
This worked in my case:
sudo apt-get install libpq-dev
I used: