日志未经声明,均为风.fox原创。版权采用『 知识共享署名-非商业性使用 2.5 许可协议』进行许可。
mac 更新软件brew update 报错 Error: /usr/local must be writable!
解决方法,执行如下命令
sudo chown -R $(whoami) /usr/local
brew doctor 医生检测
运行这个命令,检测当前环境,并对检测到的问题给出相应的解决方法
brew doctor
其他错误
Homebrew’s sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
报上面错误,根据他的提示进行操作:
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
. ~/.bash_profile
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/bee
/usr/local/sbin/bee
Donate:| 文章有帮助,可以 请我喝杯咖啡
Powered by foxwho.com 浙ICP备19037334号-1