Skip to content

Instantly share code, notes, and snippets.

@ben-gy
Created August 5, 2018 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben-gy/87e6ddb6be6d89ed4723757210c5e59d to your computer and use it in GitHub Desktop.
Save ben-gy/87e6ddb6be6d89ed4723757210c5e59d to your computer and use it in GitHub Desktop.
An error occurred while installing pg (0.21.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.21.0' --source 'https://rubygems.org/'` succeeds before bundling.
### Use the command below to fix the error above after having installed postgres.app
sudo ARCHFLAGS="-arch x86_64" gem install pg -v '0.21.0' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/10/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment