Mac环境安装brew遇到错误unable to access
2021-09-27 本文已影响0人
IT小青龙
Mac环境:macOS Big Sur 11.5.2
按照brew官网的命令执行之后,发现报了443错误:
![](https://img.haomeiwen.com/i756085/89fcb44da7d47fda.png)
unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
connection是连接的意思,443似乎是一个端口,再结合错误信息里的 'github.com:443'地址,不难想象是由于连接不上导致。
解决方案:打开浏览器,登陆GitHub,然后重新执行brew官网的安装命令。
然后发现又报错了:
![](https://img.haomeiwen.com/i756085/e021410a5d43c8dc.png)
浏览器访问http://raw.githubusercontent.com:443,发现打不开:
![](https://img.haomeiwen.com/i756085/79bb996fd77594c3.png)
于是我们换了种办法:
-
创建空的install.sh
-
打开https://gitee.com/mirrors/oh-my-zsh/blob/master/tools/install.sh并复制其中的内容到第1步的install.sh文件里
-
打开终端,将第1步创建的install.sh文件拖到终端(此刻终端上会有一个文件路径),然后按【回车键】即可运行
然后等你看到这个画面,说明安装成功:
![](https://img.haomeiwen.com/i756085/1209d51feea09ce6.png)
查看当前brew:
![](https://img.haomeiwen.com/i756085/d1b71cc221e52126.png)
恭喜你,安装成功了~