Last Updated: September 17, 2018
·
7.382K
· dpaluy

Install pg gem with Postgres.app

If you have the following error while installing gem "pg":

Can't find the 'libpg-fe.h' extconf.rb failed

etc...

Run this:

gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config

Where 9.4 is your PostgreSQL version