Rails - Gem Error while installing pg (1.1.3), and Bundler cannot continue

后端 未结 3 1199
北恋
北恋 2021-01-12 13:17

I am still fairly new to Rails. I am trying to push to Heroku and I am getting errors

The first error is when I run a Bundle Install I get this error message

相关标签:
3条回答
  • 2021-01-12 14:01

    I had the exact same problem, and solved it by running sudo apt install postgresql-contrib libpq-dev. Then bundle worked just fine.

    0 讨论(0)
  • 2021-01-12 14:07

    if you're using OSX, you could try running

    brew install postgresql
    

    and then installing the gem

    0 讨论(0)
  • 2021-01-12 14:10

    try instaling with pg-config like this:
    gem install pg -v 1.1.3 -- --with-pg-config=/usr/pgsql-9.X/bin/pg_config.

    In pg-config path mention the posgtres version installed in you're system.

    0 讨论(0)
提交回复
热议问题