I've been using the homebrew installer and then some people have recommended Heroku's Postgres.app install. Regardless I have no idea how to debug why it does not install as I do not understand what it's trying to do.

I mainly use Postgres for my rails app.

I'll accept the answer that best explains how postgres is installed and the different approaches in a way that can help me to better debug issues myself.