M1安装homebrew
最近在公司申请了 mac M1,在安装 homebrew 时问题多,以前使用 mac 可没有这么多事,网上找了很多资料,太过杂,也不够精准狠,但还是找到了好方法。
执行以下命令诸多错误
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
错误:
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
竟然连接不上,按网上说的方法 ping 一下域名,配置 host 也无效,以下方法一键搞定
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
该执行过程需要选择源,及输入用户密码。噢了!
本作品采用《CC 协议》,转载必须注明作者和本文链接