Ticket #17607: ticket17607.patch

File ticket17607.patch, 1.7 KB (added by Steven Cummings, 13 years ago)

Doc patch for homebrew installation of PostGIS dependencies

  • docs/ref/contrib/gis/install.txt

     
    712712Because of the variety of packaging systems available for OS X, users have
    713713several different options for installing GeoDjango.  These options are:
    714714
     715* :ref:`homebrew`
    715716* :ref:`kyngchaos`
    716717* :ref:`fink`
    717718* :ref:`macports`
     
    748749
    749750        export PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH
    750751
     752.. _homebrew:
     753
     754Homebrew (PostGIS option)
     755^^^^^^^^^^^^^^^^^^^^^^^^^
     756
     757Homebrew provides "recipes" for building binaries and packages from source. It
     758can be used to get the dependencies needed to use PostgreSQL and PostGIS.
     759
     760::
     761
     762    $ brew install postgresql
     763    $ brew install postgis
     764    $ brew install gdal
     765
     766This does ``not`` provide the ```template_postgis``` template database used in
     767the tutorial. The following commands show how that template can be created,
     768assuming you're running postgresql locally. You should adjust the commands as
     769needed to account for non-local postgres, a different database user, or other
     770details. Also, you may need to adjust the SQL paths based on the version of
     771postgres you installed with homebrew.
     772
     773::
     774
     775    $ createdb -h localhost template_postgis
     776    $ psql -h localhost -d template_postgis -f /usr/local/Cellar/postgresql/ \
     777        9.1.2/share/postgresql/contrib/postgis-1.5/postgis.sql
     778    $ psql -h localhost -d template_postgis -f /usr/local/Cellar/postgresql/ \
     779        9.1.2/share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql
     780
    751781.. _kyngchaos:
    752782
    753783KyngChaos Packages
Back to Top