目录
安装xcode
自己百度
安装homebrew
这可以说是网上所有brew教程中安装最快最省事的教程
安装命令如下:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
复制终端回车即可
有关报错解决
- 错误1:
Cloning into '/usr/local/Homebrew'...
fatal: Unable to read current working directory: No such file or directory
有代理代理关了 删除之前的brew重新安装
更多常见错误
https://gitee.com/cunkai/HomebrewCN/blob/master/error.md
- 安装php报错
brew安装报错 “cp: utimes: /usr/local/Cellar/jemalloc/.: Operation not permitted cp: chmod: /usr/local/C”
cp: utimes: /usr/local/Cellar/jemalloc/.: Operation not permitted
cp: chmod: /usr/local/Cellar/jemalloc/.: Operation not permitted
解决办法:
sudo chown -R $(whoami) /usr/local/Cellar
- 权限文件
Error: Permission denied @ rb_sysopen - /usr/local/etc/[email protected]/ct_log_list.cnf
解决办法:
sudo chown -R 777 /usr/local/etc/[email protected]/ct_log_list.cnf
卸载脚本
标签:Cellar,安装,报错,usr,使用,homebrew,local From: https://www.cnblogs.com/haima/p/18149987/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"