【发布时间】:2020-07-24 05:24:30
【问题描述】:
我在Ubuntu 18.04 和psql (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.
【问题讨论】:
标签: postgresql postgis