小编典典

Homebrew:无法符号链接,/usr/local/bin 不可写

all

安装时tigHomeBrew安装依赖项时显示以下问题:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/a2x
/usr/local/bin is not writable.

You can try again using:
  brew link asciidoc

阅读 122

收藏
2022-03-22

共1个答案

小编典典

我能够解决这个问题;似乎这不是特定于正在安装的软件包的问题,​​而是homebrew文件夹权限的问题。

sudo chown -R `whoami`:admin /usr/local/bin

对于某些软件包,您可能还需要对/usr/local/share或 执行此操作/usr/local/opt

sudo chown -R `whoami`:admin /usr/local/share
sudo chown -R `whoami`:admin /usr/local/opt
2022-03-22