Tag Archives: homebrew

MAC Install hombrew error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Error: RPC failed when installing homebrew on Mac; curl 56 LibreSSL SSL_ read: SSL_ ERROR_ SYSCALL, errno 54

Problem description

In the MAC terminal, enter the installation instructions given by the homebrew website:

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

Results an error occurred at the end of the installation:

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

As shown in the figure:

it is said that the Internet is blocked, but I also hang SS. It should not be this problem. Many solutions are to modify the link into a mirror image, but it doesn’t seem to work. Try to Ping the address of GitHub on the terminal:

ping github.com 

As a result, the following result appeared, and the network was really blocked

Solution

Modify the host configuration, input the following command in the terminal to open the edit file.

sudo vi /etc/hosts

Press s key to enter editing mode, add 13.229.188.59 github.com at the bottom
try to Ping github.com on the terminal again, and it is found that it has been successful.

common problem

In the installation process, the following error, but also the network is not

error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly

Sometimes if you do not do the above operation, occasionally try again, there will be a probability of success, I tried three times, inexplicably successful.

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

One day, I want to play homebrew, and the prompt is as follows:

I vaguely remember that I once played this thing. What’s the situation?

Ready to install homebrew on the official website:

it’s not a good start, so naturally open stack overflow to find the solution:

Homebrew installation on Mac OS X Failed to connect to raw.githubusercontent.com port 443

The key and reliable answers are as follows:

let’s follow this procedure

Step 1: first open homebrew install:

Homebrew install

Save file as: brew_ install.rb

In view of the fact that I have been unable to open it for several times, here is the Baidu network disk address for the convenience of small partners:

Link: https://pan.baidu.com/s/1HvJZj0dl9fDqtgzmVtK2iw Password: umqb

Step 2: Ruby installs the downloaded brew_ install.rb:

Iterm 2 type the following command:

ruby [brew_ Install. RB address]

As shown in the figure below:

the successful installation information is as follows:

Oh, OK, play ~

MAC Install homebrew Error: Failed to connect to raw.githubusercontent.com port 443: Connection refused error:

It’s been a long time. It’s time to execute

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

Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7,

I tried to change the agent of GIT config, but it didn’t work,

It’s no use changing the source of China University of science and technology

The final solution is as follows:

sudo vi /etc/hosts

Add the following in host

199.232.28.133 raw.githubusercontent.com

Then execute again


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

Method 2

Re install command line tools, and then execute the installation instruction. Homebrew is installed successfully.

    removing the old tools
rm -rf /Library/Developer/CommandLineTools

install xcode command line tools again

xcode-select --install

implement

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

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

curl: (7) Failed to connect to raw.githubusercontent.com Port 443: several solutions to connection reused?

Preface:
recently, with the release of flutter, most companies begin to use it. But if you want to develop, you need to build a flutter development environment first. You can follow the official website for the installation of flutter. Here we are going to talk about homebrew

curl: (7) Failed to connect to raw.githubusercontent.com Port 443: connection reused note that the suffix is connection reused

My guess: the possible reason for the failure of the installation is that the Xcode environment was not initialized. This is for MAC computers. I found a lot of information on the Internet, and it was said that I could open this website https://raw.githubusercontent.com/Homebrew/install/master/install , I can’t open it
so here’s my solution:

    1. solution 1
    1. (1) open the website:

https://www.ipaddress.com/
check out raw.githubusercontent.com corresponding IP address

(2) replace the host file of the system
note: it's better to copy it before changing


this is actually equivalent to the solution to the problem of network failure. If a web address can be opened on your computer, we will ping it at the terminal (DOS system).
for example:

this is the status of connection. Generally, timeout will be displayed if it is not available. You can try to see if your GitHub is connected( The same is true for general telecom companies to check network problems, to see if there is packet loss.)

(3) Then install
/bin/bash - C "$(curl - fssl) https://raw.githubusercontent.com/Homebrew/install/master/install.sh )"
explain: this line/bin/bash – C” $(curl – fssl) https://raw.githubusercontent.com/Homebrew/install/master/install.sh )”The command is actually the command to install homebrew, You can check the official website address by yourself.

2. Solution 2
execute the following command sudo gem install redis
and then execute /usr/bin/Ruby - e "$(curl - fssl) https://raw.githubusercontent.com/Homebrew/install/master/install )

3. Solution 3
I read other people’s brew_ install.rb The document, which is the website that can’t be opened, is the website https://raw.githubusercontent.com/Homebrew/install/master/install , the corresponding content is brew_ install.rb In fact, many people on the Internet have posted this file, and I have also posted one:
link: Baidu cloud download
password: 1ogr

Enter store brew_ install.rb Execute Ruby brew_ install.rb just follow the prompts to install

4. Solution 4
if the above three methods still have some problems in the installation process, you can try this method.

Step 1: go directly to the GitHub address of homebrew [portal], and pay attention to select the version when downloading. Click branch to switch to tags. Generally, this is the release version
Step 2: after downloading and decompressing, right-click visit, select go to folder…, and enter /usr/local Enter. Just find the homebrew folder in it and replace it with the content you downloaded from GitHub

After that, check whether brew is installed on your Mac, and enter brew

on the terminal to indicate that the installation is completed.