在postgres中进行Pgrouting - 无法创建扩展

时间:2017-05-21 16:38:03

标签: postgresql homebrew postgis pgrouting

我用EDB安装程序安装了postgres。我想在我的数据库中使用pgrouting。所以我通过自制brew install pgrouting

下载了它

接下来,我想在我的数据库中进行初始化:psql mydatabase -c "create extension pgrouting;"

但我收到此错误ERROR: could not open extension control file "/Library/PostgreSQL/9.6/share/postgresql/extension/pgrouting.control": No such file or directory

我在pgrouting.control

中找到了/usr/local/Cellar/pgrouting/2.4.1/share/postgresql/extension/pgrouting.control

我应该将这些文件从/ usr ...复制到/ Library / Postgres ...... ??

1 个答案:

答案 0 :(得分:1)

是的,这听起来像是一个合理的解决方案。

相关问题