I tried what you suggested by updating my ruby to the latest. My rubygems are already at the latest version 2.0.6. When I do a "sudo gem install pg" I get the following error messages:
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb --with-pg_config=/opt/PostgreSQL/9.2/include/
Using config values from /opt/PostgreSQL/9.2/include/
sh: 1: /opt/PostgreSQL/9.2/include/: Permission denied
sh: 1: /opt/PostgreSQL/9.2/include/: Permission denied
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
You may
need configuration options."
Any suggestions on how I can get this pg gem installed??
Thanks