PostgreSQL gem pg was unable to install

I got the same error on Centos. By googling I found two commands to use:

  1. yum install postgresql-libs — It gave me message saying, its already installed.
  2. yum install postgresql-devel — It solved my error related to pg_config for installing the ‘pg’ .gem.

Hope it helps 🙂

apos wrote: on Ubuntu 14.04 install:

  1. apt-get install postgresql-server-dev-9.3 libpq-dev

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)