PostgreSQL gem pg was unable to install

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

    My problem is before pg gem was already installed.. but it is not loading to bundle.. Now the solution is: when we are declaring a new application like 'rails new Demo' we have to include

    '--database=postgresql'. so now the total command is: 'rails new Demo --database=postgresql'

    Then the pg gem file will gets to bundle..

    In bundle only one gem will gets store . either pg gem or sqlite3 gem..

    Now edit the database.yml file accordingly.. thats it

提交回复
热议问题