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

I have set up the database using geodjango documentation and when I do

python manage.py sqlall world

      

I am getting this error:

OSError: /home/nishant-un/local/lib/libgdal.so: cannot open shared object file: No such file or directory

      

And when I

locate libgdal.so

      

I found it in:

/usr/lib/ogdi/libgdal.so

      

So, I changed GeoDjango settings:

GDAL_LIBRARY_PATH = '/home/nishant-un/local/lib/libgdal.so'

      

to

GDAL_LIBRARY_PATH = '/usr/lib/ogdi/libgdal.so'

      

Then when I again python manage.py sqlall world

:

I am getting error like:

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

      

Does anyone have any idea why I am getting this error.?

`

0


source to share


1 answer


Ok I got the answer, I uncommented two lines in settings.py

and it started working.



# GEOS_LIBRARY_PATH = '/usr/lib/libgeos_c.so.1'

# GDAL_LIBRARY_PATH = '/usr/lib/ogdi/libgdal.so'

      

0


source







All Articles