Mac安装brew报错汇总
背景:在 Mac 终端输入了 Homebrew 官网给的安装指令:
/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: Connection refused
如图:
解决方法:
执行命令sudo gem install redis
,之后再次执行安装命令,完美解决
问题2
安装过程中出现了错误:
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin --force
如图:
网上说是网络问题,确实ping github.com是有问题的
解决办法:
执行命令
sudo vi /etc/hosts
在最后一行添加13.229.188.59 github.com
保存退出后再次ping github.com,OK,完美解决
问题3
重新安装还是报错
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Failed during: git fetch origin --force
如图
究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小
在暂且把postBuffer的值配置成500M,对我来说够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。
git config --global http.postBuffer 524288000
这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。
git config --list
再次安装,完美解决
问题4
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.
Failed during: /usr/local/bin/brew update --force
如图
解决方案:
Mac安装brew报错汇总相关推荐
- 解决Mac安装tesserocr报错问题 Failed building wheel for
解决Mac安装tesserocr报错问题 Failed building wheel for 参考文章: (1)解决Mac安装tesserocr报错问题 Failed building wheel f ...
- mac 安装brew时报错的问题及解决方式
mac 安装brew时报错的问题及解决方式 参考文章: (1)mac 安装brew时报错的问题及解决方式 (2)https://www.cnblogs.com/ritte/p/11207036.h ...
- Mac安装Node-sass报错 warning: loop variable ‘numerator‘ creates a copy from type ‘const std::string
Mac安装Node-sass报错 运行前端项目,npm i 时报错 warning: loop variable 'numerator' creates a copy from type 'const ...
- 解决Mac安装LightGBM报错LightGBM and gcc 8 in MacOS: Library not loaded
Github Issue上有一个解决方法,但是博主失败了:https://github.com/Microsoft/LightGBM/issues/1369 以下是我的解决方法: 博主解决方法 首先卸 ...
- mac安装adb报错Unknown command: cask
1.通过 Homebrew 安装 adb user/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/mast ...
- mac安装nvm报错 :HTTP/2 stream 1 was not closed cleanly before end of the underlying stream 解决方案
1. http/1.1 在mac安装nvm时,在解决了443的错误之后,又提示 git 拉取 的错误 fatal: unable to access 'https://github.com/nvm-s ...
- Mac 安装CocoaPods报错解决 :Ignoring ffi-1.13.1 because its extensions are not built.
不知道是不是更新了macOS Big Sur的原因,终端安装不了cocoapods,会报如下错误. 终端报错信息: Ignoring ffi-1.13.1 because its extensions ...
- mac 安装python 报错:gdbm fatal: not in a git directory
mac安装python : brew install python3 安装最后报错: Installing python@3.10 dependency: gdbm fatal: not in a g ...
- Mac安装webpack报错gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1解决
安装webpack ,报错提示 gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ER ...
最新文章
- android 调用java类_Android中在WebView里实现Javascript调用Java类的方法
- Synchronize锁粒度
- java编程有一筐鸡蛋_一筐鸡蛋数学题标准答案公式-一筐鸡蛋标准答案图片详细解答版下载_东坡手机下载...
- 【收藏】使用Docker搭建MySQL服务
- s5p4418 Android 4.4.2 驱动层 HAL层 服务层 应用层 开发流程记录(一 硬件驱动层)
- 如何在你的项目中集成 CAP【手把手视频教程】
- c语言输入一个数存数组,//从键盘上输入若干整数,并将其存入数组中,并统计输入数据的个...
- Windows中命令提示符被禁用的解决方法
- 简单的网络协议:TCP/UDP HTTP/HTTPS
- 样条曲面_用SolidWorks曲面将六个小圆管向大圆管过渡
- 学习linux—— 磁盘相关指令
- Visio文件编辑查看工具Visio Viewer for Mac
- VB的阶乘和伽马函数
- 统计机器学习导论第四章答案
- firebase_crashlytics缺失dSYM unity ios
- Redis穿透、击穿、雪崩解决方案
- 【10】Docker的安装 --Mac
- python无限循环怎么结束,python的无限循环及退出
- Python-----函数详解(上篇)(附小项目实战)
- 猎鹰9号运载火箭介绍
热门文章
- Java的八种基本数据类型及其大小:
- 2020年软件类第十一届蓝桥杯 省赛 python组(人生苦短,我用python)
- vue表格实现前端分页
- MTPuTTy 远程连接阿里云
- Android Things教程:电气基础之直流电路理论
- 优思学院|六西格玛项目立项五大步骤
- 系统间通信方式之(ActiveMQ的集群方案介绍结束2之高潮部分了【(1master+2slave)*cluster】)(十九)
- Java包(package)详解
- 兴义市计算机学校图片,兴义市盘江路小学:“电子白板”让课堂告别“粉笔时代”...
- NetVLAD: CNN architecture for weakly supervised place recognition