mac下安装homebrew清华大学镜像

不是很顺利

homebrew | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

第一步,使用清华大学的镜像,否则会出现这个问题

Mac安装Homebrew的正确姿势 - 简书 (jianshu.com)

使用如下命令

# 手动设置
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
brew tap --custom-remote --force-auto-update homebrew/core https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
brew tap --custom-remote --force-auto-update homebrew/cask https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
brew tap --custom-remote --force-auto-update homebrew/cask-fonts https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git
brew tap --custom-remote --force-auto-update homebrew/cask-drivers https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git
brew tap --custom-remote --force-auto-update homebrew/cask-versions https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-versions.git
brew tap --custom-remote --force-auto-update homebrew/command-not-found https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-command-not-found.git
brew update

使用镜像之后速度就快多了,大概也有300M左右的样子

然后安装

git - SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 - Stack Overflow

All options have been removed from the curl formula, so now you need to install via:

brew install curl-openssl
这都是用清华大学的镜像安装的,速度还是快的

记得关掉代理吧,有代理的话会有点问题

and
mac brew install error - 经纶法王 - 博客园 (cnblogs.com)

 

posted on 2021-12-29 22:37  风中狂笑  阅读(793)  评论(0编辑  收藏  举报

导航