I am trying to resolve this error but am unsuccessful and looked through some of the previous SO threads on this issue.
'sudo apt-get install libpq-dev postgresql-devel' did not work as I dont have apt-get. I tried replacing apt-get with wget and that did not work either.
I also tried the following but that did not work either and I got the error below
export PATH=/usr/pgsql-9.3/bin:$PATH bundle install
An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that gem install pg -v '0.17.1'
succeeds before bundling.
Can anyone advise? I am on a Mac OSx V9.10.5