在 ubuntu 18.04 中安装 GDAL 后 postgis 不起作用

问题描述

我在 Ubuntu 18.04 上使用 psql (Postgresql 10.17)

dpkg -l | grep postgis
ii  postgis                                    3.0.1+dfsg-2~bionic0                             amd64        Geographic objects support for Postgresql
ii  postgis-doc                                3.0.1+dfsg-2~bionic0                             all          Geographic objects support for Postgresql -- documentation
ii  postgresql-10-postgis-2.5-scripts          2.5.2+dfsg-1~bionic1                             all          Geographic objects support for Postgresql 10 -- sql scripts
ii  postgresql-10-postgis-3                    3.0.1+dfsg-2~bionic0                             amd64        Geographic objects support for Postgresql 10
ii  postgresql-10-postgis-3-scripts            3.0.1+dfsg-2~bionic0                             all          Geographic objects support for Postgresql 10 -- sql scripts
server@server-B250M-D3H:~$ 

我在我的应用程序开发中使用启用了 postgis 的 postgesql,它运行良好。然后我安装了python GDAL 3.0.4版,但之后psql显示错误如下,

错误:无法访问文件“$libdir/postgis-2.5”:没有那个文件或目录

我已经删除了 postgis 和 postgresql 并重新安装了所有相关的包并给出了查询

创建扩展 postgis;

但再次显示相同的错误错误:无法访问文件“$libdir/postgis-2.5”:没有那个文件或目录

如何解决这个错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)