Skip to content

Instantly share code, notes, and snippets.

@radinreth
Created December 5, 2015 08:55
Show Gist options
  • Save radinreth/5e45c3392164707d7d5a to your computer and use it in GitHub Desktop.
Save radinreth/5e45c3392164707d7d5a to your computer and use it in GitHub Desktop.
# http://stackoverflow.com/questions/19262312/installing-pg-gem-on-os-x-failure-to-build-native-extension
same error for me and I didn't experience it until I downloaded OS X 10.9 (Mavericks). Sigh, another OS upgrade headache.
Here's how I fixed it (with homebrew):
Install another build of Xcode Tools (typing 'brew update' in the terminal will prompt you to update the Xcode build tools)
brew update
brew install postgresql
After that 'gem install pg' worked for me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment