curl: (7) Failed to connect to raw.githubusercontent.com port 443

安装ruby Homebrew使用命令\curl -sSL https://get.rvm.io | bash -s stable提示:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

在浏览器输入这个地址:链接在此
如果可以打开 ,应该会提示你:
Ruby Homebrew安装程序被弃用了,并在base中对其进行了重写,并让你使用命令/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)
如果不能打开,也可直接使用此命令。
然后如果报:RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
原因就是源不通,解决方法时更换镜像源:git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

把homebrew-core的镜像源也更换:

  1. cd "$(brew --repo)"
  2. git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  3. cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
  4. git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

更新:brew update
最后用 brew doctor检查是否安装完成。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值