homebrew預設安裝指令碼(有翻牆都不好使):
/usr/bin/ruby -e "$(curl -fssl "
安著安著你就想把電腦砸掉,因為會出各種錯誤
比如這樣的:
curl: (7) failed to connect to raw.githubusercontent.com port 443: operation timed out
正確安裝方式,請使用下面的指令碼:
/usr/bin/ruby -e "$(curl -fssl "
上面指令碼中使用了中科大映象來加速訪問。
安裝使用到的指令碼原始碼在此 homebrew-install ,僅修改了倉庫位址部分,不會產生安全隱患(這一步相當於省去其他部落格中需要自己更改或者注釋**的過程)
如果命令執行中卡在下面資訊:
cloning into '/usr/local/homebrew/library/taps/homebrew/homebrew-core'...
請control + c中斷指令碼執行如下命令:cask 同樣也有安裝失敗或者卡住的問題,解決方法也是一樣:cd "$(brew --repo)/library/taps/"
mkdir homebrew && cd homebrew
git clone git:
成功執行之後繼續執行前文的安裝命令:cd "$(brew --repo)/library/taps/"
cd homebrew
git clone
/usr/bin/ruby -e "$(curl -fssl "
最後看到==> installation successful!就說明安裝成功了。
最後執行:
brew update
/usr/bin/ruby -e "$(curl -fssl "
中科大源注意bottles可以臨時設定,在終端執行下面命令:git -c "$(brew --repo)" remote set-url origin
# 長期替換homebrew-bottles
echo 'export homebrew_bottle_domain=' >> ~/.bash_profile
source ~/.bash_profile
export homebrew_bottle_domain=
清華大學源恢復預設源git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
brew update
# 長期替換homebrew-bottles
echo 'export homebrew_bottle_domain=' >> ~/.bash_profile
source ~/.bash_profile
homebrew-bottles配置只能手動刪除,將 ~/.bash_profile 檔案中的 homebrew_bottle_domain=內容刪除,並執行 source ~/.bash_profile。git -c "$(brew --repo)" remote set-url origin
git -c "$(brew --repo homebrew/core)" remote set-url origin
git -c "$(brew --repo homebrew/cask)" remote set-url origin
brew update
mac系統 映象飛速 安裝Homebrew 教程
homebrew是一款包管理工具,目前支援macos和linux系統。主要有四個部分組成 brew homebrew core homebrew cask homebrew bottles。本文主要介紹homebrew安裝方式以及如何加速訪問 homebrew 預設安裝指令碼 usr bin rub...
MacOS 映象飛速安裝Homebrew教程
homebrew是一款包管理工具,目前支援macos和linux系統。主要有四個部分組成 brew homebrew core homebrew cask homebrew bottles。名稱說明 brew homebrew 源 倉庫 homebrew core homebrew 核心源 home...
Mac 安裝home brew出錯
mark翻車經過 鹿晗公開戀情了。hhhh跟我沒有關係,老薛got7 好!安裝homebrew的時候翻車了。原因大概是不懂mac得.git config的許可權,強行回憶了一波作業系統裡許可權管理的問題,解決了。翻車現場大概是這樣 在terminal裡輸出 usr bin ruby e curl f...