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
I had the exact same problem, and solved it by running sudo apt install postgresql-contrib libpq-dev
. Then bundle worked just fine.
if you're using OSX, you could try running
brew install postgresql
and then installing the gem
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.