mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused

简介: mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused

在mac终端执行homebrew安装命令

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

安装提示

GUOdeMacBook-Pro:~ ****$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

解决方案

浏览器直接访问

https://raw.githubusercontent.com/Homebrew/install/master/install.sh

将访问的内容拷贝,创建install.sh文件,并保存在本地。

在终端中,cd到install.sh的文件路径,执行

./install.sh

安装就会开始了。

GUOdeMacBook-Pro:downloads ****$ ./install.sh
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
 
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Enumerating objects: 5234, done.
remote: Counting objects: 100% (5234/5234), done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 21584 (delta 5217), reused 5216 (delta 5209), pack-reused 16350
Receiving objects: 100% (21584/21584), 7.44 MiB | 93.00 KiB/s, done.
Resolving deltas: 100% (16563/16563), completed with 1020 local objects.
From https://github.com/Homebrew/brew
 * [new branch]          dependabot/bundler/Library/Homebrew/sorbet-0.5.5890 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.5890
 * [new branch]          dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5890 -> origin/dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5890
 * [new branch]          github-container-registry -> origin/github-container-registry
相关文章
|
1月前
|
开发工具 git iOS开发
Mac 安装软件包管理工具Homebrew
Mac 安装软件包管理工具Homebrew
|
5天前
|
Python
Mac上pyCharm找不到已安装的库
Mac上pyCharm找不到已安装的库
9 0
|
16天前
|
Java Android开发 芯片
Mac M芯片安装DBeaver Ultimate
Mac M芯片安装DBeaver Ultimate
18 0
Mac M芯片安装DBeaver Ultimate
|
1月前
QT 5.14.2版本 MAC环境安装部署流程
QT 5.14.2版本 MAC环境安装部署流程
|
1月前
|
iOS开发 MacOS Python
Mac安装pip报错的解决办法
Mac安装pip报错的解决办法
|
1月前
|
存储 Ubuntu Linux
如何在 Mac M1 (Apple Silicon) 上安装 ABAP 1909
如何在 Mac M1 (Apple Silicon) 上安装 ABAP 1909
15 0
|
2月前
|
NoSQL 关系型数据库 MySQL
Windows、Linux、Mac安装数据库(mysql、MongoDB、Redis)#0
不同系统下进行MySQL安装、MongoDB安装、Redis安装【2月更文挑战第5天】
445 5
Windows、Linux、Mac安装数据库(mysql、MongoDB、Redis)#0
|
2月前
|
关系型数据库 MySQL 数据安全/隐私保护
【MySQL】 Docker 安装 MySQL8.0(mac)
【MySQL】 Docker 安装 MySQL8.0(mac)
105 0
|
2月前
|
Go
Mac安装Angular并部署运行应用
Mac安装Angular并部署运行应用
|
2月前
|
自然语言处理 搜索推荐 iOS开发
Mac安装和使用GitBook
Mac安装和使用GitBook