Josh Hepworth

Fix Bundle Install with OS X Postgres App

Using only to build the pg gem in bundler, the bundle install will fail because it can't find pg_config. You can specify that bundler use the file provided in the package by running the following in your terminal:

$ bundle config --with-pg-config=/Applications/

UPDATE: Since I published this, I found a better solution. Add the /bin directory that ships with to your PATH (in .profile, .bashrc, .zshrc, or the like to make sure this gets set for every Terminal session):


Adding this to your path will ensure that bundler can successfully compile native extensions against your installation when it installs the pg gem.