Mac下安装homebrew 报错:RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

1.将brew的install文件下载本地

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install

2.修改install文件的镜像源

(我没有用vim,是进入访达用command+shift+G找到brew_install文件进行修改)

BREW_REPO="https://github.com/Homebrew/brew".freeze

改为

BREW_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git".freeze

BREW_REPO下添加

CORE_TAP_REPO="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git".freeze

3.开始安装

/usr/bin/ruby brew_install

你可能感兴趣的:(Mac下安装homebrew 报错:RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60)