Skip to content

Instantly share code, notes, and snippets.

@OrelSokolov
Last active December 20, 2018 11:51
Show Gist options
  • Select an option

  • Save OrelSokolov/3058076607f0ea745207761ec99e5e54 to your computer and use it in GitHub Desktop.

Select an option

Save OrelSokolov/3058076607f0ea745207761ec99e5e54 to your computer and use it in GitHub Desktop.

Problem:

No pg_config... trying anyway. If building fails, please try again with
 --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***

Try this:

$ locate libpq-fe.h
/Library/PostgreSQL/10/include/libpq-fe.h

Then:

$ gem install pg -- --with-opt-include=/Library/PostgreSQL/10/include

SUCCESS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment