The easiest way I have found to install PostgreSQL on Mac OSX is by using Postgres.app.
- Move the downloaded file to ~/Applications
- Double click
Add "/Applications/Postgres.app/Contents/Versions/latest/bin" to your PATH
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin