Skip to content

Instantly share code, notes, and snippets.

@geovanygameros
Last active September 24, 2023 12:04
Show Gist options
  • Save geovanygameros/a6cbfb44c39efeb85ae4cbc193d95689 to your computer and use it in GitHub Desktop.
Save geovanygameros/a6cbfb44c39efeb85ae4cbc193d95689 to your computer and use it in GitHub Desktop.
Install pg gem in Ruby on Rails with Postgres app in mac
# Replace the pg version for the one you're triying to install and replace the path with version number of your Postgres app
# gem install pg -v [PG GEM VERSION] -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/[POSTGRES APP VERSION]/bin/pg_config
gem install pg -v '1.5.4' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/15/bin/pg_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment