Skip to content

Instantly share code, notes, and snippets.

@Luminus
Created February 1, 2015 01:26
Show Gist options
  • Save Luminus/bcb2fb4c032dd33d3de8 to your computer and use it in GitHub Desktop.
Save Luminus/bcb2fb4c032dd33d3de8 to your computer and use it in GitHub Desktop.
I had to run this to enable the pg gem in my app work. This way I can use postgre on my development computer and also push to heroku. The --with-pg-config bit tells the gem how to find my postgre install confiurations.
gem install pg -- --with-pg-config=/opt/local/lib/postgresql94/bin/pg_config
@Luminus
Copy link
Author

Luminus commented Sep 13, 2015

I've ditched MacPorts for Homebrew and for some reason I could only get pg to install by doing this

env ARCHFLAGS='-arch x86_64' gem install pg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment