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
If you are an Ubuntu user you need to do the following prior installing the gem
sudo apt-get install libpq-dev
Then perform gem install pg -v '0.18.1'
or just bundle install
if you have you r gem in a GEMFILE.
If you are using Mac and Homebrew, Looks like libpqxx lib was missing.
brew install libpqxx
This command should do it.