We will be using OpenGeo Suite as our software package, as it includes PostGIS/PostgreSQL in a single fast installation for Windows, Apple OS X, and Linux. The Suite also includes GeoServer, OpenLayers, and a number of web visualization utilities.
If you want to install just PostgreSQL, it can also be downloaded directly as source code or binary from the PostgreSQL project site: http://postgresql.org/download/. After installing PostgreSQL, use the “StackBuilder” utility to add the PostGIS extension.
The precise directions in this document are for Windows, but for OS X the installation is largely the same. Once the Suite is installed, the directions for both operating systems should be almost identical.
Find PostGIS installer for your platform. Double click to begin.
Enjoy the warm welcome, then click Next.
PostGIS is licensed under the GNU GPL, which is reproduced on the licensing page. Click I Agree.
The directory where PostGIS will reside is the usual
C:\Program Files (x86)) location. Click Next.
The installer will create a number of shortcuts in the Start Menu. Click Next.
Make sure the PostGIS component and the Client Tools components are selected. Click Next.
Ready for install! Click Install.
The installation process will run for a couple of minutes.