其實(shí)很簡(jiǎn)單就2 句
brew install glew
brew install glfw3
But , The problem is brew, 阿西吧胰舆, brew 要更新容燕,終端一直 超時(shí) time out
brew update -verbose
Error:
homebrew-core is a shallow clone.
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
更改了 更新的相關(guān)鏡像就可以了
-
步驟1.替換
Homebrew
源.$ cd "$(brew --repo)" $ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
-
"$(brew --repo)"
是用來自動(dòng)指向Homebrew的目錄的.
-
-
步驟2.替換
homebrew-core
源.$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
-
步驟3.替換
homebrew-cask
源.$ cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask $ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
參考鏈接 link.
Done.