MaxOS下Homebrew安装问题

有关Mac OS下Homebrew的安装问题

Homebrew官网

https://docs.brew.sh/
所有有关Homebrew的东西都在这里。

安装过程中出现的问题

1.连接有问题

1:
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443

这种情况请修改/etc/hosts文件,配置github有关域名的本地解析。
如果自己有机场的话,可以使用
	export http_proxy="[本地HTTP代理链接]"
	export https_proxy="[本地HTTPS代理链接]"
	export all_proxy="[我这里用的是SOCK5代理链接]“
实在不行可以使用gitee,gitee上也有开源的Homebrew仓库
2:
fatal: unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
Failed during: git fetch --force origin
这种情况在发生在git上,同上如果自己有机场的话,可以使用
git config --global http.proxy="[本地HTTP或者SOCKS5代理链接]"
git config --global https.proxy="[本地HTTPS或者SOCKS5代理链接]"
或者在开始安装之前(替换一下git源)

官方安装说明中,提到了

export HOMEBREW_BREW_GIT_REMOTE="..."  # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="..."  # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

我们可以在安装Homebrew之前, 把HOMEBREW_BREW_GIT_REMOTE和HOMEBREW_CORE_GIT_REMOTE这两个git源换一下,这里是用的是清华的镜像

export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
# 然后再执行下面的命令
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

然后就是漫长的等待了,最后记得执行一下brew update
最后附上一张成功图
在这里插入图片描述
在这里插入图片描述

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值