Mac安装软件笔记
安装brew报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 一步搞定!!
安装 brew:
一句命令搞定,国内的镜像地址
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
配置hosts文件:
199.232.96.133 raw.githubusercontent.com
设置权限:sudo chmod -R 777 你的文件夹名
sudo chown -R $(whoami) /usr/local chown: /usr/local: Operation not permitted
Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 brew install <package>