如何在运行`brew link automake`时修复“无法符号链接”错误?

时间:2015-12-01 07:27:41

标签: homebrew automake

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

You can try again using:   brew link automake

当我再试一次时,它会显示相同的错误。

1 个答案:

答案 0 :(得分:6)

我有类似的错误:

$ brew link pkg-config
Linking /usr/local/Cellar/pkg-config/0.28...
Error: Could not symlink share/aclocal/pkg.m4
/usr/local/share/aclocal is not writable.

我使用:sudo chown -R $(whoami) /usr/local/share/

修复此问题