curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

MacOS系统使用Homebrew官方地址时,报错:

1
2
Mac:~ jc$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

解决办法:
使用国内源

1
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

该地址提供多个国内源地址,安装非常简便,亲测有效。
查检安装结果:

1
brew -v

如果能正确打印版本信息,则安装成功!