在Mac(OSX 10.11.6)上通过Homebrew安装PostgreSQL时,我遇到了以下错误:
不确定是否相关,但我已经通过Homebrew安装了OpenSSL 1.0.2o_2和Readline 7.0.5。
有人知道为什么会出现这个错误以及如何解决吗?
Error: The `brew link` step did not complete successfully The formula
built, but is not symlinked into /usr/local
并且
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.
/postgresql
文件夹不存在。不确定是否相关,但我已经通过Homebrew安装了OpenSSL 1.0.2o_2和Readline 7.0.5。
有人知道为什么会出现这个错误以及如何解决吗?
brew doctor
的输出了吗?也许它能给你一些线索。另外,你能展示一下你是如何通过 Homebrew 安装 PostgreSQL 的吗? - anothernode/usr/local/share/postgresql
应该包含Homebrew安装成功后所有符号链接到相关文件的内容。所以,我猜问题是为什么在您的情况下这个目录和符号链接没有被创建。我刚刚在我的机器上执行了brew reinstall postgresql
,它可以正常工作。您可能手动更改了/usr/local/share
的权限吗? - anothernode