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 CentOS 6.4,
yum install postgresql-devel gem install pg
worked well!