mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #25633 -- Updated macOS Spatialite installation instructions.
Updated the Spatialite installation instruction to refer to the latest available version from KyngChaos, as Gaia-SINS does not provide MacOS binaries anymore.
This commit is contained in:
parent
a309821c97
commit
ccb7f7c6d2
@ -97,12 +97,12 @@ First, follow the instructions in the :ref:`kyngchaos` section.
|
|||||||
|
|
||||||
When creating a SpatiaLite database, the ``spatialite`` program is required.
|
When creating a SpatiaLite database, the ``spatialite`` program is required.
|
||||||
However, instead of attempting to compile the SpatiaLite tools from source,
|
However, instead of attempting to compile the SpatiaLite tools from source,
|
||||||
download the `SpatiaLite Binaries`__ for macOS, and install ``spatialite`` in a
|
download the `SpatiaLite Tools`__ package for macOS, and install ``spatialite``
|
||||||
location available in your ``PATH``. For example::
|
in a location available in your ``PATH``. For example::
|
||||||
|
|
||||||
$ curl -O https://www.gaia-gis.it/spatialite/spatialite-tools-osx-x86-2.3.1.tar.gz
|
$ curl -O https://www.kyngchaos.com/files/software/frameworks/Spatialite_Tools-4.3.zip
|
||||||
$ tar xzf spatialite-tools-osx-x86-2.3.1.tar.gz
|
$ unzip Spatialite_Tools-4.3.zip
|
||||||
$ cd spatialite-tools-osx-x86-2.3.1/bin
|
$ cd Spatialite\ Tools/tools
|
||||||
$ sudo cp spatialite /Library/Frameworks/SQLite3.framework/Programs
|
$ sudo cp spatialite /Library/Frameworks/SQLite3.framework/Programs
|
||||||
|
|
||||||
Finally, for GeoDjango to be able to find the KyngChaos SpatiaLite library,
|
Finally, for GeoDjango to be able to find the KyngChaos SpatiaLite library,
|
||||||
@ -110,7 +110,7 @@ add the following to your ``settings.py``::
|
|||||||
|
|
||||||
SPATIALITE_LIBRARY_PATH='/Library/Frameworks/SQLite3.framework/SQLite3'
|
SPATIALITE_LIBRARY_PATH='/Library/Frameworks/SQLite3.framework/SQLite3'
|
||||||
|
|
||||||
__ https://www.gaia-gis.it/spatialite-2.3.1/binaries.html
|
__ https://www.kyngchaos.com/software/frameworks/
|
||||||
|
|
||||||
Homebrew
|
Homebrew
|
||||||
--------
|
--------
|
||||||
|
Loading…
Reference in New Issue
Block a user