【发布时间】:2018-04-15 05:07:43
【问题描述】:
我已经通过 Homebrew 安装了 Postgresql@9.6 和 Postgis。但是,通过 Homebrew 安装 Postgis 会将 Postgresql 的最新版本安装为 10 作为依赖项,并且将 Postgresql 固定在 9.6.5 会阻止通过 Homebrew 安装 Postgis。
执行“CREATE EXTENSION postgis;”返回:
ERROR: could not open extension control file "/usr/local/Cellar/postgresql@9.6/9.6.5/share/postgresql@9.6/extension/postgis.control": No such file or directory
我还尝试卸载 Postgresql(在 10 时)并编辑 Postgis 公式以依赖 Postgres@9.6 而不是 Postgresql。
这与How to install Postgis to a Keg installation of Postgres@9.5 using Homebrew? 类似,但使用了后来的小桶公式
【问题讨论】:
-
“6 小时前询问”——看到这个我真的笑出了声。我遇到了完全相同的问题,正在积极研究它。 (是的,我知道这不是一个有用的评论......)
-
另一个可怜的灵魂拥有same question。发完帖子才看到你的,不好意思。另一种可能的方法可能被描述为here,但我仍在犹豫是否尝试。
标签: postgresql homebrew postgis postgresql-9.5 postgresql-9.6