关于自制软件安装的SSL问题
当我尝试使用终端安装关于自制软件安装的SSL问题,ssl,terminal,homebrew,osx-yosemite,Ssl,Terminal,Homebrew,Osx Yosemite,当我尝试使用终端安装Homebrew时,它失败,出现以下错误: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 Press RETURN to
Homebrew
时,它失败,出现以下错误:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
fatal: unable to access 'https://github.com/Homebrew/homebrew/': Could not resolve host: github.com
Failed during: git fetch origin master:refs/remotes/origin/master -n --depth=1
我认为这是因为代理设置。因此,我尝试使用以下方法重置git代理:
git config --global --unset http.proxy
及
但还是失败了
请提供帮助。您必须使用设置git的代理
git config --global --add http.proxy proxyHost:proxyPort
但您还必须为自制软件本身设置代理:
export ALL_PROXY=proxyHost:proxyPort
export ALL_PROXY=proxyHost:proxyPort