brew升级后ruby报错怎么办

Python068

brew升级后ruby报错怎么办,第1张

您好,希望以下回答能帮助您 先升级你的 homebrew 版本,再给升级其他软件 或者 直接 brew link --overwrite git 应该就可以了,不行就 sudo rm /usr/local/bin/git /usr/local/bin/git-* brew link git 如您还有疑问可继续追问。

在Mac上安装Homebrew时可能会遇到这样的错误提示:

curl: (35) Server aborted the SSL handshake

下面就详细介绍下如何在Mac上安装homebrew

工具/原料

homebrew

终端命令

方法/步骤

打开Mack中的命令行工具

2

在打开的命令行工具中输入如下语句:

ruby -e "$(curl --insecure -fsSL

3

执行上面命令后会提示输入系统密码

4

输入密码后会开始下载homebrew,如果此时网速不稳定可能会出现错误提示:curl: (35) Server aborted the SSL handshake。

此时需要执行卸载操作,输入如下命令进行卸载:

ruby -e "$(curl -fsSL

卸载完成后再次尝试安装。

mac环境下brew command not found错误的解决方法

操作如下

打开终端 - 输入以下命令:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

1

由于国内某些原因,导致http://raw.githubusercontent.com/被墙了,无法访问,提示以下错误:

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

1

第一种解决方法:

设置mac的DNS为114.114.114.114或者8.8.8.8

设置DNS方法:设置DNS的办法

第二种解决方法:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

————————————————