当前位置:网站首页>安装homebrew报错汇总
安装homebrew报错汇总
2022-06-26 07:02:00 【話吥哆先森丶】
一、安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
二、提示报错1
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
1、先在浏览器输入这个地址:
https://raw.githubusercontent.com/Homebrew/install/master/install
看是否能打开,不能打开就是你网络有问题,不要问我哦~
把这个网页保存名为 brew_install.rb 的文件,保存的位置你随便,只要自己能找到。
2、则在终端输入curl
// 输入
curl
// 提示
curl: try 'curl --help' or 'curl --manual' for more information
这样就没错,要是报错,那我就不知道了!
3、然后在终端进入存放这个文件的目录
ruby brew_install.rb
然后等安装homebrew吧!
三、提示报错2
fatal: unable to access 'https://github.com/Homebrew/brew/': Could not resolve host: github.com
Failed during: git fetch origin master:refs/remotes/origin/master --tags --force
1、试着先在终端 ping github.com
MacBook-Pro:~$ping github.com
PING github.com (192.30.252.131): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
如果 ping 出来是这种结果,就接着看第二步
2、修改hosts
1)在终端中 sudo vi /etc/hosts 打开编辑文件
2)下面添加 192.30.253.113 github.com
3)保存退出
3、在终端 ping github.com
就会发现已经成功了
4、继续执行上边的安装命令即可~
四、提示报错3
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
网络有问题,在执行一下安装命令
/usr/bin/ruby -e "$(curl - fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
到这基本就?了~~~
五、提示报错4
Mac 下安装 brew Warning: /usr/local/bin is not in your PATH.
边栏推荐
- 高德地图使用自定义地图无效问题
- Turris omnia: an open source router technology favored by hackers
- 在公司逮到一个阿里10年的测试开发,聊过之后大彻大悟...
- 【图像融合】基于梯度能量、局部能量、 PCA三种融合规则实现MRI-CT图像融合附matlab代码
- SQL Basics
- Interviewer: what is the difference between a test plan and a test plan?
- MySQL basic usage 01
- 一项听起来大胆,并且非常牛逼的操作——复刻一个 Netflix
- Numpy learning challenge level 1 - Download and installation of numpy
- Easyar use of unity
猜你喜欢
[004] [stm32] MDK project configuration and commissioning
【图像融合】基于梯度能量、局部能量、 PCA三种融合规则实现MRI-CT图像融合附matlab代码
. Net 20th anniversary! Microsoft sends a document to celebrate
If you meet a female driver who drives didi as an amateur, you can earn 500 yuan a day!
Stm32f1 and stm32subeide programming example - thermal sensor driver
oracle创建带返回值的存储过程并sql执行调用
Pytorch builds CNN LSTM hybrid model to realize multivariable and multi step time series forecasting (load forecasting)
LabVIEW Arduino TCP/IP远程智能家居系统(项目篇—5)
Service interface test guide
【路径规划】基于改进人工势场实现机器人路径规划附matlab代码
随机推荐
web入门之 Promise API
Invalid problem of self defined map used by Gaode map
[image enhancement] image defogging based on artificial multiple exposure fusion amef with matlab code
Big factory interview TCP protocol classic 15 consecutive questions! 22 pictures to make you fully understand
Fmt Must the result of println (true) be true?
OCA安全联盟(CyberSecurity Mesh)
In depth analysis of redis object structure
When asked during the interview, can redis master-slave copy not answer? These 13 pictures let you understand thoroughly
【图像融合】基于梯度能量、局部能量、 PCA三种融合规则实现MRI-CT图像融合附matlab代码
LabVIEW Arduino tcp/ip remote smart home system (project part-5)
网络io,磁盘io
数据挖掘是什么?
在公司逮到一个阿里10年的测试开发,聊过之后大彻大悟...
My SQL(二)
ZRaQnHYDAe
How to publish function computing (FC) through cloud effect
Service interface test guide
cocoscreator播放Spine动画
同花顺究竟如何开户,网上开户是否安全么?
高德地图使用自定义地图无效问题