Installing the PostgreSQL gem with 'gem pq' fails with ERROR: Failed to build gem native extension

前端 未结 3 1206
野性不改
野性不改 2020-12-23 12:58

I am learning Ruby on Rails and trying to develop an application. In my application I am trying to use the default SQLite database in the Development Mode a

3条回答
  •  执念已碎
    2020-12-23 13:52

    You have to do this

    sudo apt-get install libgmp-dev libpq-dev
    

    and then

    gem install pg
    

提交回复
热议问题