乐心
Always dream. Always explore.
乐心的博客
Mac中常用命令行工具安装

1. xcode command tool安装

终端中输入:

xcode-select --install

2.安装brew

需要上面的xcode command tool

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

3.brew 更换清华大学源

cd "$(brew --repo)"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew update

Homebrew-bottles 镜像

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
如果喜欢这篇文章,欢迎推荐给你的朋友

推荐文章

发表评论

textsms
account_circle
email

乐心的博客

Mac中常用命令行工具安装
1. xcode command tool安装终端中输入:xcode-select --install2.安装brew需要上面的xcode command tool/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew…
扫描二维码继续阅读
2018-07-23