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