Read more

Ubuntu: Fix "An error occurred while installing pg"

Henning Koch
September 11, 2014Software engineer at makandra GmbH

If you get an error like this:

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.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Then do this:

sudo apt-get install libpq-dev

... and run Bundler again.

Posted by Henning Koch to makandra dev (2014-09-11 11:57)