在网上查找安装教程,有很多教程会说使用以下命令来执行安装:
/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
或者会出现以下错误:
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL
直接对上面提供的网址进行访问,内容如下:
#!/usr/bin/ruby STDERR.print <<EOS Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in Bash. Please migrate to the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" EOS Kernel.exec "/bin/bash", "-c", '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/