Solve install problem when using PostgresApp Mac OS X
Are you using PostgresApp and trying to install PostgreSQL gem and returning Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
?
I did this on Mavericks and worked. This can maybe happen on other versions of OS X.
gem install pg -- --with-pg-config="/Applications/Postgres.app/Contents/MacOS/bin/pg_config"
After do this I could bundle normally.
Written by Patrick Müller
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#