Skip to content

Instantly share code, notes, and snippets.

@maslenkov
Last active October 23, 2017 12:43
Show Gist options
  • Save maslenkov/409340c6a273fbbb4061 to your computer and use it in GitHub Desktop.
Save maslenkov/409340c6a273fbbb4061 to your computer and use it in GitHub Desktop.
Notes to resolve pg gem issue
Error:
An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.
Decision:
gem install pg -v '0.17.1' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config
Decision 2(better):
This problem can happen due to lack of dependencies. To fix it u can try smth like for rvm:
rvm requirements
Or if u are not use RVM then u can manually setup requirements which can looks like:
build-essential openssl libreadline6
libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev
libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev
autoconf libc6-dev ncurses-dev automake libtool bison subversion
BUT: the list of requiremtns can be wrong. So please do more research for your case if `rvm requirements` is not you approach.
@maslenkov
Copy link
Author

UPD: Note that the real problem is that ruby requirements are not met.

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