Ticket #17607: ticket17607.patch

File ticket17607.patch, 1.7 KB (added by estebistec, 2 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: 
     715* :ref:`homebrew` 
    715716* :ref:`kyngchaos` 
    716717* :ref:`fink` 
    717718* :ref:`macports` 
    749750        export PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:$PATH 
     752.. _homebrew: 
     754Homebrew (PostGIS option) 
     757Homebrew provides "recipes" for building binaries and packages from source. It 
     758can be used to get the dependencies needed to use PostgreSQL and PostGIS. 
     762    $ brew install postgresql 
     763    $ brew install postgis 
     764    $ brew install gdal 
     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. 
     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 
    751781.. _kyngchaos: 
    753783KyngChaos Packages