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:
Symlinking the files as above didn't work for me. pg would always look at libssl-0.9.8.dylib.
This question contains the right answer it seems: gem install pg --with-pg-config works, bundle fails
It boils down to
bundle config build.pg --with-pg-config=/Library/PostgreSQL/9.1/bin/pg_config
(or whichever pg you are targeting)
followed by gem uninstall pg and then bundle install