2

为了自动部署包含 Postgresql 9.2 和 PostGIS 2.x 的 Ubuntu 12.04 服务器(使用 Puppet),我最终安装了 PostgreSQL 9.1 和 9.2,并且它们的服务都在端口 5432 和 5433 上启动。

即使我只安装了为什么会发生这种情况postgresql-9.2?如何解决问题?

安装程序

apt-get install postgresql-9.2 postgresql-server-dev-9.2 postgresql-client-9.2 postgresql-contrib-9.2 postgis

apt-get install libxml2-dev, libjson0-dev, xsltproc, docbook-xsl, docbook-mathml, gettext, libgeos-3.2.2, libgeos-c1, libgeos-dev, proj, geos, pg_top

回购:

ppa:pitti/postgresql
ppa:ubuntugis/ubuntugis-unstable

apt-cache 显示 postgis

Package: postgis
Priority: optional
Section: misc
Installed-Size: 2917
Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 2.0.1-2~precise3
Depends: libc6 (>= 2.14), libgdal1 (>= 1.9.0), libgeos-c1 (>= 3.3.3), libglib2.0-0 (>= 2.12.0), libgtk2.0-0 (>= 2.14.0), libpq5, postgresql-9.1-postgis
Filename: pool/main/p/postgis/postgis_2.0.1-2~precise3_amd64.deb
Size: 889350
MD5sum: 243ef9b2668417391a4d911024b43260
SHA1: 3588bca6e15f6bbb6e2c478d33da424a1fc8da77
Description-en: Geographic objects support for PostgreSQL -- common files
 PostGIS adds support for geographic objects to the PostgreSQL object-relational
 database. In effect, PostGIS "spatially enables" the PostgreSQL server,
 allowing it to be used as a backend spatial database for geographic information
 systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS
 follows the OpenGIS "Simple Features Specification for SQL".
 .
 This package contains the PostGIS userland binaries, common files and
 documentation.

apt-cache 策略

postgis:
  Installed: 2.0.1-2~precise3
  Candidate: 2.0.1-2~precise3
  Version table:
 *** 2.0.1-2~precise3 0
        500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status
     1.5.3-2 0
        500 http://ubuntu.bhs.mirrors.ovh.net/ubuntu/ precise/universe amd64 Packages
4

0 回答 0