我一直在尝试使用postgres 9.6在ubuntu 18.04上使用命令安装postgis 2.3
select region.name, department.name, count(distinct employee.id)
from employee left join region on employee.region_id = region.id
left join department on employee.department_id = department.id
group by region.name, department.name;
但收到错误
sudo apt-get install postgresql-9.6-postgis-2.3
我安装了postgres 9.6。
答案 0 :(得分:0)
错误似乎与网络或存储库有关
将postgresql-9.6-postgis-2.3软件包下载到本地存储并安装。
有关。例如:
/path/to/postgis2_96-2.3.2-1.rhel7.x86_64.rpm
sudo alien --install /path/to/postgis2_96-2.3.2-1.rhel7.x86_64.rpm