nativeInstallerpostgresql

Install PostGIS in a PostgreSQL database

PostGIS adds support for geographic objects to the PostgreSQL object-relational database.

Linux

NOTE: Since Bitnami LAPP Stack v5.4.0-1 version, PostGIS is already included in the stack so it is not necessary to install it manually.

Follow these steps to install the PostGIS extension in a Bitnami LAPP Stack:

  • Install the compilation tools:

    $ sudo apt-get update
    $ sudo apt-get install build-essential libtool autoconf unzip wget
    
  • Download and install the dependencies:

    $ wget http://download.osgeo.org/geos/geos-3.3.2.tar.bz2
    $ bunzip2 geos-3.3.2.tar.bz2
    $ tar -xvf geos-3.3.2.tar
    $ cd geos-3.3.2
    $ ./configure
    $ make
    $ sudo make install
    
    $ wget http://download.osgeo.org/proj/proj-4.8.0.tar.gz
    $ tar -xzvf proj-4.8.0.tar.gz
    $ cd proj-4.8.0
    $ ./configure
    $ make
    $ sudo make install
    
  • Download and install PostGIS.

    $ wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gz
    $ tar -xzvf postgis-1.5.3.tar.gz
    $ cd postgis-1.5.3
    $ ./configure
    $ make
    $ sudo make install
    
  • Verify that the postgis database has been successfully created, using the phpPgAdmin application at http://127.0.0.1/phppgadmin.

Learn more about configuring PostgreSQL with PostGIS.

Windows

NOTE: Since Bitnami WAPP Stack v5.4.0-1, PostGIS is already included in the stack.

Follow these steps to install the PostGIS extension in a Bitnami WAPP Stack:

  • Download and install the Bitnami WAPP Stack on your computer.

  • Download PostGIS for Windows. The version of PostGIS must be compatible with the version of PostgreSQL installed with the Bitnami WAPP Stack.

  • Specify the PostgreSQL installation directory, which is “C:\Program Files\Bitnami WAPP Stack\postgresql” by default.

  • When prompted for the password, enter the same password that you specified during the Bitnami WAPP Stack installation

  • Accept default values and enable the shp2pgsql loader in PgAdmin III.

  • Verify that the postgis database has been successfully created, using the phpPgAdmin application at http://127.0.0.1/phppgadmin.

Learn more about configuring PostgreSQL with PostGIS.

Last modification August 25, 2018