Skip to content

Instantly share code, notes, and snippets.

@alextdavis
Last active December 8, 2015 22:09
Show Gist options
  • Save alextdavis/7d41d2fcb2f76092ecfd to your computer and use it in GitHub Desktop.
Save alextdavis/7d41d2fcb2f76092ecfd to your computer and use it in GitHub Desktop.
Installing Postgres Gems on my Mac
This is a note for myself, but it may work for other people too.
sudo gem install do_postgres -- --with-pgsql-server-dir=/Applications/Postgres.app/Contents/MacOS --with-pgsql-server-include=/Applications/Postgres.app/Contents/MacOS/include/server
sudo gem install pg -v '0.18.1' -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config
Version 9.3 (old)
sudo gem install do_postgres -v '0.10.15' -- --with-pgsql-server-dir=/Applications/Postgres.app/Contents/Versions/9.3 --with-pgsql-server-include=/Applications/Postgres.app/Contents/Versions/9.3/include/postgresql/server
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment