gem install pg --version '0.18.2' -- --with-pg-config=/opt/local/lib/postgresql93/bin/pg_config
or using bundler
bundle config build.pg --with-pg-config=/opt/local/lib/postgresql93/bin/pg_config
then run bundle
gem install pg --version '0.18.2' -- --with-pg-config=/opt/local/lib/postgresql93/bin/pg_config
or using bundler
bundle config build.pg --with-pg-config=/opt/local/lib/postgresql93/bin/pg_config
then run bundle