I am stuck with the setup of Ruby (1.9.3), Rails and Postgres (9.0.8) on my Mac (10.6.8). Everytime when I run rails console I get the following error:
rails console
Install new PostgreSQL version (i've used homebrew)
brew install postgres
Then reinstall the gem pg:
gem uninstall pg gem install pg
Hope it helps.