I needed to reinstall my postgres gem after upgrading to OS X Mavericks. I used homebrew to install postgres.
Find the path to your postgres config with
brew info postgres
And look for something like: postgres -D /usr/local/var/postgres # serve that database
Now use the --with-pg-config
option to point to that directory and use gem install
directly instead of bundler for just this one: