AttributeError:/usr/lib/ogdi/libgdal.so:未定义的符号:GDALVersionInfo [英] AttributeError: /usr/lib/ogdi/libgdal.so: undefined symbol: GDALVersionInfo

查看:194
本文介绍了AttributeError:/usr/lib/ogdi/libgdal.so:未定义的符号:GDALVersionInfo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用geodjango文档以及在执行操作时设置了数据库

I have setup the database using geodjango documentation and when I am doing

python manage.py sqlall world

我收到此错误:

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

当我

locate libgdal.so

我在以下位置找到了它

/usr/lib/ogdi/libgdal.so

所以我更改了GeoDjango设置:

So I changed the GeoDjango Settings:

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

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

然后当我再次执行python manage.py sqlall world时:

我得到的错误是:

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

有人知道我为什么会收到此错误吗??

Does anyone has Any idea why am I getting this error .. ?

`

推荐答案

好,我得到了答案,我取消了settings.py中的两行的注释,它开始起作用.

Okay I got the answer, I Uncommented the two lines in the settings.py and it started working.

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

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

这篇关于AttributeError:/usr/lib/ogdi/libgdal.so:未定义的符号:GDALVersionInfo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆