mac上来安装什么库,最方便的当然是用homebrew
但是,我之前遇到Updating Homebrew…
切换阿里源
apple@webkubor ~ % cd "$(brew --repo)"
apple@webkubor Homebrew % git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
apple@webkubor Homebrew % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
apple@webkubor homebrew-core % git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
apple@webkubor homebrew-core % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
apple@webkubor homebrew-cask % git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-cask.git