Mac 安装homebrew报错fatal: unable to access ‘https://github.com/Homebrew/brew/‘: LibreSSL SSL_connect: S

复制homebrew官网指令下载
Mac 安装homebrew 报错
fatal: unable to access ‘https://github.com/Homebrew/brew/’: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Mac 安装homebrew报错fatal: unable to access ‘https://github.com/Homebrew/brew/‘: LibreSSL SSL_connect: S

解决办法
https://www.ipaddress.com/
查询无法获取的ip地址
Mac 安装homebrew报错fatal: unable to access ‘https://github.com/Homebrew/brew/‘: LibreSSL SSL_connect: S

然后将ip地址填入本机的host文件里
Mac 安装homebrew报错fatal: unable to access ‘https://github.com/Homebrew/brew/‘: LibreSSL SSL_connect: S
保存之后,重新运行homebrew的下载指令即可成功
Mac 安装homebrew报错fatal: unable to access ‘https://github.com/Homebrew/brew/‘: LibreSSL SSL_connect: S
Next steps:
1.编辑你的 ~/.zshrc 或者 ~/.bashrc 在其中添加如下所示:

export PATH=/opt/homebrew/bin:$PATH

然后执行 source ~/.zshrc 之后重启终端

执行 brew help 如果没报错 大功告成

上一篇:记录Mac上安装homebrew以及python3的过程


下一篇:Mac M1 安装mysql