【发布时间】:2018-06-19 17:03:05
【问题描述】:
我已经安装了 postgresql,但它说我没有链接到它。 我在命令行中运行它并收到以下错误:
myname@MacBook-Pro-8 ~> brew install postgresql
Warning: postgresql 10.4 is already installed, it's just not linked
You can use `brew link postgresql` to link this version.
myname@MacBook-Pro-8 ~> brew link postgresql
Linking /usr/local/Cellar/postgresql/10.4...
Error: Could not symlink share/man/man7/ABORT.7
/usr/local/share/man/man7 is not writable.
myname@MacBook-Pro-8 ~> sudo brew link postgresql
Password:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.
我也试过了:
brew prune; brew link postgresql
这给了我同样的错误:
Error: Could not symlink share/man/man7/ABORT.7
/usr/local/share/man/man7 is not writable.
为什么该文件夹不可写,我该怎么做才能改变它?
【问题讨论】:
-
这并不能真正帮助回答您的问题,但我强烈建议您使用 Peter Eisentraut 为 postgresql 构建的自制软件。 github.com/petere/homebrew-postgresql
-
感谢您的建议。我正在尝试学习有关 Udemy 的课程,但我会检查一下。你推荐是因为它有多个版本的 pSQL?
标签: postgresql command-line homebrew