Mac安裝brew報錯彙總

2021-10-10 06:14:10 字數 2001 閱讀 3441

/usr/bin/ruby -e "$(curl -fssl "
執行命令報錯許可權問題

報錯

curl: (7) failed to connect to raw.githubusercontent.com port 443: connection refused

如圖:

解決方法:

執行命令sudo gem install redis,之後再次執行安裝命令,完美解決

安裝過程**現了錯誤:

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,完美解決

重新安裝還是報錯

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的預設值太小,我們需要調整它的大小,在終端重新配置大小

git config --global http.postbuffer 524288000
這樣已經配置好了,如果你不確定,可以根據以下命令檢視postbuffer。

git config --list
再次安裝,完美解決

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 /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 使用brew安裝gdb

安裝命令如下 curl lssf sudo tar xvz c usr local strip 1 2014 09 02 親試 當brew安裝成功後,就可以隨意安裝自己想要的軟體了,例如wget,命令如下 sudo brew install wget 安裝gdb sudo brew install ...

Mac使用(一)Mac安裝brew

brew homebrew mac osx上的軟體包管理工具,類似linux中yum,能在mac中方便安裝軟體或者解除安裝軟體,brew 的官方 在官方 對brew的用法進行了詳細的描述 安裝方法 在mac中開啟termal 輸入命令 安裝完成 檢視幫助 使用brew查詢軟體 brew search...

Mac安裝nginx,包括安裝brew

macbook pro 版本 macos big sur 11.2.1 1 在安裝nginx過程中,提示bash brew command not found.若已安裝brew則可跳過本步驟 先安裝 brew,執行命令 bin zsh c curl fssl 安裝異常 提示資料夾 usr local...