无需下载 Xcode

一、安装 Homebrew

Homebrew官网链接

命令行安装

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
二、Homebrew 换源

命令行依次运行

cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
brew update
三、安装 make

命令行运行

brew install make

检查是否安装成功:

make --version

在这里插入图片描述

四、参考文章

1. Mac下安装homebrew,并解决brew慢到不行的问题

2.国内Homebrew安装太慢 – 简单五步快速安装

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注