Problems installing postgres in Ruby

have you considered using the “pure ruby” version?

gem install postgres-pr