下载gcc报错解决方案记录

报以下错误

Updating Homebrew...
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gmp-6.2.1.b
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1
Already downloaded: /Users/lipingping/Library/Caches/Homebrew/downloads/265b882d093ce331d7a26dfc09487e74735ef9804efd8097a845ba23b86c097d--gmp-6.2.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:6a44705536f25c
Already downloaded: /Users/lipingping/Library/Caches/Homebrew/downloads/3bbbc5e33ceb43ea4ee408c164c26e7d80adc472651c80ddfabd02130e92f034--gmp--6.2.1.big_sur.bottle.tar.gz
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/isl-0.24.bi
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.24
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:d8c7026042e122
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/mpfr-4.1.0.
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libmpc-1.2.
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/zstd-1.5.0.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/zstd/manifests/1.5.0

==> Pouring gmp-6.2.1.big_sur.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/your/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz'
Error: Failure while executing; `tar --extract --no-same-owner --file /Users/you r/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz --directory /private/tmp/d20220803-67031-1qoxoni` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/your/Library/Caches/Homebrew/downloads/7d0352be7245648d93bcdde92042e89cd80327103bfcc1b2d170b0e147076b35--gmp-6.2.1.big_sur.bottle.tar.gz'


解决方法

export HOMEBREW_BOTTLE_DOMAIN=''

重新安装

brew install gcc

得到结果

(base) deMBP ~ % brew install gcc                

==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.2.1

Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/265b882d093ce331d7a26dfc09487e74735ef9804efd8097a845ba23b86c097d--gmp-6.2.1.bottle_manifest.json

==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:6a44705536f25c

Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/3bbbc5e33ceb43ea4ee408c164c26e7d80adc472651c80ddfabd02130e92f034--gmp--6.2.1.big_sur.bottle.tar.gz

==> Downloading https://ghcr.io/v2/homebrew/core/isl/manifests/0.24

Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/cf108f3cbdbad48a5ecbe0a148e97b47590045a58151ad768bcf7219ec23305a--isl-0.24.bottle_manifest.json

==> Downloading https://ghcr.io/v2/homebrew/core/isl/blobs/sha256:d8c7026042e122

Already downloaded: /Users/your/Library/Caches/Homebrew/downloads/6084560bcc9f57f61c1551eb851321d27bd02d6565112f1250593d18de9a330f--isl--0.24.big_sur.bottle.tar.gz

==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/manifests/4.1.0

######################################################################## 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/mpfr/blobs/sha256:1e8eb0326f62d

==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh

######################################################################## 100.0%

==> Downloading https://ghcr.io/v2/homebrew/core/libmpc/manifests/1.2.1

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值