终端安装Homebrew报错

537 阅读1分钟

1.错误提示

Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

2.解决方案

sudo chown -R $(whoami) $(brew --prefix)/*

如果用户没有权限修改/user/local,则

sudo install -d -o $(whoami) -g admin /usr/local/Frameworks

3.出处

gist.github.com/dalegaspi/7…