nis*_*tan 9 postgresql postgis
我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
Run Code Online (Sandbox Code Playgroud)
我跑了find /usr -name postgis.control
才发现postgis.control
是在一个名为12
而不是10
laptop@xyz-x:~$ find /usr -name postgis.control
/usr/share/postgresql/12/extension/postgis.control
Run Code Online (Sandbox Code Playgroud)
编辑 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.
Run Code Online (Sandbox Code Playgroud)
小智 7
我不确定我需要什么版本的 postgres 或 postgis,所以我找到了sudo apt install postgis postgresql-postgis
工作。
它要么给了我最新的,要么匹配了我安装的 postgres 版本。
归档时间: |
|
查看次数: |
7499 次 |
最近记录: |