I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the pg gem. It gives me the following error:
pg
For MacOS without installing PostgreSQL server:
brew install libpq gem install pg -- --with-pg-config="/usr/local/Cellar/libpq/9.6.6/bin/pg_config"