PostgreSQL gem pg was unable to install

前端 未结 10 934
孤城傲影
孤城傲影 2021-01-31 09:23

My DB is PostgreSQL.I am on CENTOS.... While installing the pg gem I received the following error. I reinstalled to clear my YAML problem also, which didn\'t work, but it is jus

10条回答
  •  我在风中等你
    2021-01-31 09:31

    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

提交回复
热议问题