Requirements PostgreSQL source Steps Create a destination directory: sudo mkdir -p /opt/local/pgsql Unpack, configure, and build the source: tar xvzf postgresql-9.3.3.tar.gz cd postgresql-9.3.3 ./configure --prefix=/opt/local/pgsql make && sudo make install