How to install Postgis to a Keg installation of Postgres@9.5 using Homebrew?

流过昼夜 提交于 2019-12-12 18:19:17

问题


I have installed Postgresql@9.5 to my OSX El Capitan Machine using Homebrew 1.2. Unfortunately, upon installing Postgis, and performing CREATE EXTENSION postgis;

It returns,

ERROR:  could not open extension control file "/usr/local/Cellar/postgresql@9.5/9.5.6/share/postgresql@9.5/extension/postgis.control": No such file or directory

I tried, uninstalling all postgresql and install only the 9.5 version, and then installing postgis but to no avail.

I think I got a similar question but this one is only for Ubuntu. how to change install postgis location? postgres

This discussion also instruct to install postgresql using @ notation but didn't tell that it will create a non-comformant directory name

来源:https://stackoverflow.com/questions/43845177/how-to-install-postgis-to-a-keg-installation-of-postgres9-5-using-homebrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!