新Mac安装brew报错:
unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
我的解决方案是替换 BREW_REPO
为国内的镜像源.
- 下载安装脚本
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install
chmod +x brew_install
- 更换
BREW_REPO
# BREW_REPO = "https://github.com/Homebrew/brew".freeze
BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze
- 执行安装
./brew_install