if you are running on Linux you may be interested in what worked for me:
sudo apt-get install postgresql
sudo apt-get install libpq-dev
Then
gem install pg
then
bundle install
src: http://wikimatze.de/installing-postgresql-gem-under-ubuntu-and-mac