I have PostgreSQL 9.4 running on CentOS 7. I installed it from PostgreSQL's repository. And now I want to install ruby gem pg
. But it fails, since it can't find pg_config
.
Now then, psql
works, and in the rpm file I can see:
$ rpm -q --scripts -p postgresql94-9.4.12-1PGDG.rhel7.x86_64.rpm | egrep 'psql|pg_config'
/usr/sbin/update-alternatives --install /usr/bin/psql pgsql-psql /usr/pgsql-9.4/bin/psql 940
...
So, it makes psql
automatically available, but not pg_config
. Is it by design or by accident? Should I install posgresql
as well and use pg_config
from PosgreSQL 9.2?
From the docs
So try this,
Updated for things not previously mentioned, but also in the docs.