Problems installing GeoDjango on Ubuntu 14.04

I have few problems installing GeoDjango. I tried to install SpatiaLite for use with SQLite and PostGIS for PostgreSQL using this tutorial: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#spatial-database but no working results. Actually I have

DATABASES = {
'default': {
    'ENGINE': 'django.contrib.gis.db.backends.postgis',
    ...
    }
}

GEOS_LIBRARY_PATH = '/usr/lib/libgeos_c.so.1'
GDAL_LIBRARY_PATH = '/usr/lib/ogdi/libgdal.so'

      

in mine settings.py

and I get the error:

AttributeError: /usr/lib/ogdi/libgdal.so: undefined symbol: GDALVersionInfo

      

I installed the package gdal

and the path to these libraries is correct. I haven't found anything I can do to deal with this error. What is the problem with this error? Should I install some more packages? I am using Python2.7 and Django 1.8

+3


source to share





All Articles