安裝HomeBrew 在 Mac OS 遇到curl: (35) LibreSSL SSL in connection to raw.githubusercontent.com:443錯誤的解決

1、先進入這個鏈接,保存鏈接裏面的文件(有可能需要科學上網…)
正常安裝

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"  

如果出現問題,就將後面的網址提取出來用瀏覽器訪問。下載網址對應的install文件
我這裏已經將網址提取出來了,進入後右鍵保存
install 文件下載地址
2、打開保存的地方(如Download文件夾)
3、找到保存的文件把名字更改爲
在這裏插入圖片描述
4、打開terminal,並且進入保存文件的文件夾,然後輸入

ruby brew_install.rb

即可

如果在安裝的過程中很慢,可以將文件中的brew源換成清華的源,
還有可能遇到
LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
解決方法是

git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
cd "$(brew --repo)" 

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

然後再更新

brew update
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章