Você já tentou executar isso antes de executar a
bundle install ? bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config
Consulte https://bundler.io/v1.3/bundle_config.html
bundle install ? bundle config build.pg --with-pg-config=/usr/pgsql-9.1/bin/pg_config