【发布时间】:2017-08-30 18:40:10
【问题描述】:
我在 pycharm 中使用 postgres,但它找不到 postGIS 扩展。它正在寻找他们:/Library/PostgreSQL/9.6/share/postgresql/extension/
但是,当我安装 PostGIS 时,它告诉我:PostGIS extension modules are installed in: /usr/local/share/postgresql/extension
另外一个问题(不知道是不是和第一个有关)是:could not access file "$libdir/postgis-2.3": No such file or directory
【问题讨论】:
-
你是如何安装 PostGIS 的?
-
你是否为 postgis 执行了 CREATE EXTENSION 命令
-
我使用 homebrow 安装它
-
是的,我收到了这条消息:错误:无法访问文件“$libdir/postgis-2.3”:没有这样的文件或目录
-
您应该重新安装 postGIS 以修复此错误。在 Ubuntu 中是:
sudo apt-get install postgresql-9.6-postgis-2.3
标签: postgresql pycharm postgis