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/ 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.