起因是这样的,我想在mac上安装htop
然后我了解到可以用brew安装htop,然后再执行命令 brew install htop
所以我就开始吭哧吭哧安装brew
过程xue wei 曲折了一些
先是看到一个文章,Mac如何安装brew?_赫赫phper的博客-CSDN博客_mac 安装brew
我就开始写命令:
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
结果1:curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to cdn.jsdelivr.net:443
再试验:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
结果2:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
据说结果2的原因是: http://raw.githubusercontent.com 访问不稳定引起的。这个网址我就打不开妈的。
然后就查结果1的原因,查出来一个文章,真牛逼,按照执行,成功。
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443 - 简书hh
Homebrew国内如何自动安装(国内地址)(Mac & Linux) - 知乎
还有一种办法没有试,下次换电脑试验。
啥时候我才能学会自己解决问题呐,而不是整体cdsn,知乎,简书。哭了。
最后,感谢大佬们!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)