【问题标题】:Can't create postgis extension in postgresql 11 (Linux Mint 19.1 Cinnamon)无法在 postgresql 11 (Linux Mint 19.1 Cinnamon) 中创建 postgis 扩展
【发布时间】:2019-11-11 10:42:16
【问题描述】:

我尝试使用 pgAdmin 4 在 Postgresql 11 上运行 postgis 扩展,但尝试创建扩展时出现以下错误:

Could not access file "$libdir/postgis-3": No such file or directory

我通过

安装了 postgis
sudo apt-get postgis*

但是 postgis-scripts 包括 postgis.control 丢失了,我找不到 postgis 扩展。

所以我安装了

sudo apt-get install postgresql-11-postgis-3-scripts

现在它显示/usr/share/postgresql/11/ 中的文件,我可以在选择Extensions > Create > Extension 时在pgAdmin 浏览器中选择postgis 扩展名,但是当尝试保存时会显示

Could not access file "$libdir/postgis-3": No such file or directory

我关注了:stackoverflow issue here,但我不能ALTER EXTENSIONUPDATE TO 3.0.0

它告诉我extension postgis doesn't exists

我错过了什么???

【问题讨论】:

    标签: postgis postgresql-11 postgis-installation


    【解决方案1】:

    尝试重启postgresql:

    sudo service postgresql restart
    

    【讨论】:

      猜你喜欢
      • 2020-06-25
      • 2018-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-17
      • 1970-01-01
      • 2020-06-22
      • 2017-09-26
      相关资源
      最近更新 更多