Unable to load the SpatiaLite library extension "libspatialite.so.7"

Working with Django and Spatialite? If you updated recently to the last ubuntu version (15.10) and you're getting this error or similar:
Unable to load the SpatiaLite library extension "libspatialite.so.7" because: /usr/lib/x86_64-linux-gnu/libspatialite.so.7: undefined symbol: sqlite3_spatialite_init
You can fix it adding this line to your settings.py file:
SPATIALITE_LIBRARY_PATH = 'mod_spatialite' 
... and installing the package libsqlite3-mod-spatialte
sudo apt-get install libsqlite3-mod-spatialite 

Inspiration by https://lists.debian.org/debian-gis/2015/09/msg00000.html

No hay comentarios:

Publicar un comentario