Skip to content

Instantly share code, notes, and snippets.

@Evanto
Created May 2, 2017 12:39
Show Gist options
  • Save Evanto/1f0ac2c2b651853ef41f455dd5245f09 to your computer and use it in GitHub Desktop.
Save Evanto/1f0ac2c2b651853ef41f455dd5245f09 to your computer and use it in GitHub Desktop.
sudo apt-get install libpq-dev
http://stackoverflow.com/questions/40286351/an-error-occurred-while-installing-pg-0-19-0-and-bundler-cannot-continue
Rails installed on Ubuntu, but after a new app in created, when I run bundle install in the project folder, an error is thrown:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
............
An error occurred while installing pg (0.20.0), and Bundler cannot
continue.
Make sure that `gem install pg -v '0.20.0'` succeeds before bundling.
eva@eva-CR70-2M-CX70-2OC-CX70-2OD:~/Develop/Ruby/flashcards1$ bundle exec spring binstub --all
bundler: command not found: spring
Install missing gem executables with `bundle install`
The hotfix above helped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment