Error message: Make sure that `gem install pg -v ‘0.18.1’` succeeds before bundling

If you’re on Ubuntu, most likely you’re missing a hidden dependency

sudo apt-get install libpq-dev

If you are on OS X, try these steps

  • Install Xcode command line tools (Apple Developer site). If you have
    it already installed, update it using brew update.
  • brew uninstall postgresql
  • brew install postgresql
  • gem install pg

Leave a Comment