gpt4 book ai didi

postgis - 无法在 postgresql 11 (Linux Mint 19.1 Cinnamon) 中创建 postgis 扩展

转载 作者:行者123 更新时间:2023-12-05 07:17:31 63 4
gpt4 key购买 nike

我尝试使用 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 EXTENSION更新到 3.0.0

它告诉我 扩展名 postgis 不存在

我错过了什么???

最佳答案

尝试重新启动 postgresql:

sudo service postgresql restart

关于postgis - 无法在 postgresql 11 (Linux Mint 19.1 Cinnamon) 中创建 postgis 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58799817/

63 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com