The PostgreSQL official download site(http://www.postgresql.org/download/) offers pre-build binary packages for Macintosh and Linux. The easiest way of installing PostgreSQL on Macintosh or Linux is to use these packages.