Tsu*_*una 17 database postgresql ubuntu postgis
当我在我的postgres数据库中并尝试为我的数据库创建扩展时,我收到此错误
ERROR: could not open extension control file "/usr/share/postgresql/9.5/extension/postgis.control": No such file or directory
我知道有很多帖子都有这个错误和解决方案,我也尝试过它们.在stackoverflow中找到了这么多,但没有一个工作.
我意识到在我的postgresql目录下有9.2,9.3,9.4,9.5,9.6,
我走进错误的目录,然后我意识到真的没有postgis.control内9.5
我检查了我的psql版本并显示了9.6.1
我进了9.6文件夹,我看到了postgis.control它.
我想更改安装目录,以便我运行时
create extension postgis
它会去
"/usr/share/postgresql/9.6/extension/postgis.control"
代替
"/usr/share/postgresql/9.5/extension/postgis.control"
有人可以帮我一把吗?
提前致谢.
PS使用Ubuntu 14.04并将Ubuntu 16.04作为桌面,我还没有尝试安装postgis
小智 32
您应该使用以下命令:
sudo apt-get install postgresql-9.6-postgis-scripts
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9829 次 |
| 最近记录: |