gem 'pg' depends on the libpq-dev package.