我正在尝试在 ubuntu Ubuntu 12.04.4 LTS 上安装 postgis。
我搜索存储库并找到一个名为 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
知道如何完成安装以便我可以使用该死的扩展吗?
塔
最佳答案
假设您安装了 postgis 版本 1.5.x。你必须安装postgis 2.0。在安装之前添加正确的存储库。 This链接将帮助您添加正确的存储库。
关于postgresql - ubuntu 上的 Postgis 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21756205/