官方安装Home-brew步骤:
1.先安Xcode:$ xcode-select --install
2.安Homebrew:$ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/ master/install)”
3.更新Homebrew:$ brew update
4.检查安装状态:$ brew doctor
我遇到的问题和解决办法:
问题:安装速度慢如牛
解决方法:使用镜像,以清华镜像举例:清华镜像
(1)运行好安装口令后,出现下面情况时关闭terminal
==> Tapping homebrew/core
Cloning into ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core’…
(2)输入:git clone https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/homebrew-core.git
(或其他镜像网址,如中科院镜像)
完成