I tried using gem install pg
but it doesn\'t seem to work.
gem install pg
gives this error
Temporarily enhancing PATH to in
If you are using Postgres.app on Mac, you may resolve this issue once and for all like this:
First gem uninstall pg
, then edit your ~/.bash_profile
or ~/.zshrc
file or equivalent and add:
# PostgreSQL bin path
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
Then bundle install
and gem install pg
should both work as expected.