mac上来安装什么库,最方便的当然是用homebrew
但是,我之前遇到Updating Homebrew…

切换阿里源

  1. apple@webkubor ~ % cd "$(brew --repo)"
  2. apple@webkubor Homebrew % git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
  3. apple@webkubor Homebrew % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
  4. apple@webkubor homebrew-core % git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
  5. apple@webkubor homebrew-core % cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
  6. apple@webkubor homebrew-cask % git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-cask.git