当前位置:   article > 正文

Homebrew下载速度加速-使用镜像_homebrew下载太慢

homebrew下载太慢

为了安装 Doris,个别组件下载速度非常慢,多次超时,因此尝试使用镜像。

尝试了下面几个帖子里的方法:

homebrew国内加速镜像配置_homebrew core 国内镜像-CSDN博客

Homebrew下载速度优化(已解决问题)_brew 下载慢_CaptainDrake的博客-CSDN博客

方法一遇到如下报错:

  1. git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
  2. git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git
  3. brew update
  4. 致命错误:cannot change to '/opt/homebrew/Library/Taps/homebrew/homebrew-core': No such file or directory
  5. 致命错误:cannot change to '/opt/homebrew/Library/Taps/homebrew/homebrew-cask': No such file or directory

于是直接到清华源查找说明:

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

因为我之前安装过 homebrew,所以执行如下命令即可,测试成功。

  1. export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
  2. export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
  3. export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
  4. export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
  5. export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
source ~/.zshrc
  1. ==> Fetching node
  2. ==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/node-21.1.0.arm64_ventura.bottle.tar.gz
  3. ####################################################################################################################################################### 100.0%
  4. ==> 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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/414559
推荐阅读
相关标签
  

闽ICP备14008679号