279aqg
Last Updated: September 17, 2018
·
1.944K
· 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