PostgreSQL、Postgis 和 Pgrouting 兼容版本

PostgreSQL ,Postgis and Pgrouting compatible versions

我正在尝试在 Ubuntu (VPS) 中使用 PostgreSql 9.3、Postgis 2.1.3 和 Pgrouting 2.0.0 版本。我已经安装了 PostgreSql 9.3,但是当我在 PgAdmin3 中 运行 CREATE EXTENSION postgis SCHEMA public VERSION "2.0.0"; 时,我得到错误:无法统计文件“/usr/share/postgresql/9.3/extension/postgis--2.1.3.sql": 没有这样的文件或目录,Pgrouting 2.0 也有同样的错误。0.Are 这些版本兼容 运行ning 在那个系统中?在 localhost 中工作正常。

sudo apt-get update
sudo apt-get install postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-9.3-postgis-scripts postgresql-contrib-9.3 postgresql-client-common postgresql-common postgresql-server-dev-9.3 postgresql-client-9.3

这应该会安装所有内容并启动服务器。阅读以下手册页。创建用户和数据库。

man createuser
man createdb 

这将为用户 'user':

安装 postgis 到数据库 'mydatabase'
psql -U user mydatabase -c "create extension postgis"