gpt4 book ai didi

postgresql - 创建扩展 postgis 失败,

转载 作者:行者123 更新时间:2023-12-03 15:06:56 28 4
gpt4 key购买 nike

我在 Ubuntu 18.04psql (PostgreSQL) 12.2 (Ubuntu 12.2-2.pgdg18.04+1)
运行 temba=# create extension postgis;失败并出现以下错误

ERROR:  could not open extension control file "/usr/share/postgresql/10/extension/postgis.control": No such file or directory

我跑了 find /usr -name postgis.control才知道 postgis.control位于名为 12 的文件夹中而不是 10
laptop@xyz-x:~$ find /usr -name postgis.control
/usr/share/postgresql/12/extension/postgis.control

编辑 1

我已经跑了 sudo apt-get install postgis
Reading package lists... Done
Building dependency tree
Reading state information... Done
postgis is already the newest version (3.0.1+dfsg-2.pgdg18.04+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最佳答案

我跑了这个 sudo apt install postgis postgresql-10-postgis-2.5它起作用了

关于postgresql - 创建扩展 postgis 失败,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61157620/

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