Error Compiling Postgres pg gem on Ubuntu 12.04 [duplicate]
Looks like you need to install the dev libraries for postgres:
sudo apt-get install libpq-dev
Looks like you need to install the dev libraries for postgres:
sudo apt-get install libpq-dev