安装时tig,HomeBrew安装依赖项时显示以下问题:
tig
HomeBrew
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
我能够解决这个问题;似乎这不是特定于正在安装的软件包的问题,而是homebrew文件夹权限的问题。
homebrew
sudo chown -R `whoami`:admin /usr/local/bin
对于某些软件包,您可能还需要对/usr/local/share或 执行此操作/usr/local/opt:
/usr/local/share
/usr/local/opt
sudo chown -R `whoami`:admin /usr/local/share sudo chown -R `whoami`:admin /usr/local/opt