PostgreSQL、Postgis和Pgrouting兼容版本
我试图在Ubuntu(VPS)中使用PostgreSql 9.3、Postgis 2.1.3和Pgrouting 2.0.0版本。我已经安装了PostgreSql 9.3,但是当我运行PostgreSQL、Postgis和Pgrouting兼容版本,postgresql,ubuntu,postgis,pgrouting,Postgresql,Ubuntu,Postgis,Pgrouting,我试图在Ubuntu(VPS)中使用PostgreSql 9.3、Postgis 2.1.3和Pgrouting 2.0.0版本。我已经安装了PostgreSql 9.3,但是当我运行CREATE EXTENSION postgis SCHEMA public VERSION“2.0.0”时在PgAdmin3中,我收到错误:无法统计文件“/usr/share/postgresql/9.3/extension/postgis--2.1.3.sql”:没有这样的文件或目录,并且与Pgrouting
CREATE EXTENSION postgis SCHEMA public VERSION“2.0.0”时代码>在PgAdmin3中,我收到错误:无法统计文件“/usr/share/postgresql/9.3/extension/postgis--2.1.3.sql”:没有这样的文件或目录,并且与Pgrouting 2.0.0有相同的错误。这些版本在该系统中运行吗?在本地主机中工作正常
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
这将把postgis安装到用户“用户”的数据库“mydatabase”中:
psql -U user mydatabase -c "create extension postgis"
是的,这应该行得通。您是从哪个存储库安装的,还是从源代码处编译的?谢谢您的评论。我是ubuntu新手,不知道如何使用存储库安装postgis和扩展。我应该在postgresql中编辑pg_配置文件吗?。