PostgreSQL gem pg was unable to install

前端 未结 10 840
孤城傲影
孤城傲影 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:36

    $ sudo apt-get install libpq-dev
    $ sudo apt-get install libdbd-pg-ruby1.8
    

    then:

    $ sudo apt-get install pg  
    

    for CentOS please read the below link..

    http://wiki.postgresql.org/wiki/YUM_Installation

    To install pg in centOS

    run this commands
    
    bundle config build.pg 
    
    gem install pg -v '0.12.0'
    

提交回复
热议问题