Rubygems PG missing error in debian squeeze

During the weekend while installing Redmine I had a big error with gems, it was missing Postgre libs and headers. I was thinking about excluding it from its gem files, but decided to solve the problem and let it have the header files needed for bundle install:

An error occured while installing pg (0.13.2), and Bundler cannot continue.
Make sure that `gem install pg -v '0.13.2'` succeeds before bundling.


cd /tmp/
apt-get install libpq5 libssl-dev libkrb5-dev comerr-dev
apt-get -f install
dpkg -i libpq5_9.1.3-2~bpo60+1_amd64.deb
dpkg -i libpq-dev_9.1.3-2~bpo60+1_amd64.deb
cd /where/u/were
bundle install

Now running bundle install we will see new and exciting errors.


Author: S4mur4i

Happy in the unhappy world.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s