When installing PostgreSQL via Homebrew on Mac (OSX 10.11.6) I get the following errors:
Error: The `brew link` step did not complete successfully The formula
built, but is not symlinked into /usr/local
and
initdb: file "/usr/local/share/postgresql/postgres.bki" does not exist
This might mean you have a corrupted installation or identified the
wrong directory with the invocation option -L.
The /postgresql folder doesn't exist.
Not sure if it's relevant, but I already have OpenSSL 1.0.2o_2 and Readline 7.0.5 installed via Homebrew.
Does anyone know why this error occurs and how I can solve it?
brew doctor? Maybe it could give you a clue. Also, could you show how exactly you install PostgreSQL via Homebrew?/usr/local/share/postgresqlshould contain all the symlinks to the relevant files installed by Homebrew after a successful installation. So, I guess, the question is why this directory and the symlinks do not get created in your case. I just didbrew reinstall postgresqlon my machine and it works fine. Did you maybe manually change the permissions of/usr/local/share?