Страница 2 из 2

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 12:45
Denis Rykov
Сначала обновляете список пакетов:

Код: Выделить всё

sudo apt-get update
Потом ищете как правильно называется нужный пакет, например:

Код: Выделить всё

sudo apt-cache search postgis
И только потом install, в моём случае:

Код: Выделить всё

sudo apt-get install postgresql-9.3-postgis-2.1

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 13:12
Geobotanic
При установке ругается на битые пакеты и пакет libgdal1

Код: Выделить всё

root@map2:/# sudo apt-get install postgresql-9.3-postgis-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql-9.3-postgis-2.1 : Depends: libgdal1 (>= 1.9.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@map2:/# sudo apt-get install libgdal1-dev^C
root@map2:/# sudo apt-get install postgresql-9.5-postgis-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql-9.5-postgis-2.2 : Depends: libgdal1 (>= 1.9.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 13:24
Denis Rykov
А вы случаем никакие сторонние репозитории не подключали?

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 14:09
Geobotanic
Репозитории не подключал, только устанавливал пакеты GEOS,GDAL,PROJ4,G++ (по требованию терминала)

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 14:45
Denis Rykov
Что за дистрибутив и какой версии? Меня смущает, то что в configure у вас там засветился Postgres 9.3, но вы ставите postgresql-9.5-postgis-2.2, если это Ubuntu, то похоже что xenial.

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 15:07
Geobotanic
Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-79-generic x86_64)

Re: Руководство пользователя PostGIS

Добавлено: 07 мар 2016, 17:57
Дмитрий Барышников
В 14.04 по идее должен быть вот этот пакет postgresql-9.3-postgis-2.1
Раз у вас 9.5 - значит либо сторонний репозиторий либо что-то из deb вручную.

Что выводит система по запросам?
sudo apt-cache search postgis
sudo apt-cache search gdal
gdalinfo --version