赞
踩
为了安装 Doris,个别组件下载速度非常慢,多次超时,因此尝试使用镜像。
尝试了下面几个帖子里的方法:
homebrew国内加速镜像配置_homebrew core 国内镜像-CSDN博客
Homebrew下载速度优化(已解决问题)_brew 下载慢_CaptainDrake的博客-CSDN博客
方法一遇到如下报错:
- git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
-
- git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
-
- brew update
- 致命错误:cannot change to '/opt/homebrew/Library/Taps/homebrew/homebrew-core': No such file or directory
- 致命错误:cannot change to '/opt/homebrew/Library/Taps/homebrew/homebrew-cask': No such file or directory
于是直接到清华源查找说明:
homebrew | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
因为我之前安装过 homebrew,所以执行如下命令即可,测试成功。
- export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
- export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
- export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
- export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
- export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
source ~/.zshrc
- ==> Fetching node
- ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/node-21.1.0.arm64_ventura.bottle.tar.gz
- ####################################################################################################################################################### 100.0%
- ==> Installing dependencies for maven: giflib, libpng, freetype, fontconfig, glib, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, graphite2, icu4c, harfbuzz, jpeg-turbo, libtiff, little-cms2 and openjdk
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。