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:
Error:

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.

Solution:

cd /tmp/
wget http://ftp.at.debian.org/debian-backports//pool/main/p/postgresql-9.1/libpq-dev_9.1.3-2~bpo60+1_amd64.deb
wget http://ftp.at.debian.org/debian-backports//pool/main/p/postgresql-9.1/libpq5_9.1.3-2~bpo60+1_amd64.deb
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.

Advertisements

Author: S4mur4i

Happy in the unhappy world.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s