點擊訪問homebrew官網(wǎng)按照步驟下載
遇到
time out
問題考慮是github被墻了, 更改鏡像源操作
$ export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
$ export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
$ export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
3.找不到xxx/opt/xxx地址的根據(jù)下方==> Next steps:
顯示的步驟操作
- 檢查是否安裝成功
$ brew -v