我正在尝试在Ubuntu Ubuntu 12.04.4 LTS上安装postgis。
我search回购并find一个名为postgresql-9.1-postgis的软件包。 然后我安装它:
sudo apt-get install postgresql-9.1-postgis
它还安装了以下依赖项:
libgeos-3.2.2 libgeos-c1 libproj0 postgis proj-data
然后我认为我可以轻松地做到(在我的模式中):
CREATE EXTENSION postgis;
但是我却得到了下面详细的错误:
ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory ********** Error ********** ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/postgis.control": No such file or directory SQL state: 58P01 Any idea how I can finalize the installation so that I can use the damn extension?
谁能帮忙?
钽
这是因为Postgis版本。 这个命令安装旧版本的Postgis。
sudo apt-get install postgresql-9.1-postgis
从源代码安装Postgis版本2并尝试。
这里是官方安装指南。