Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
关于自制软件安装的SSL问题_Ssl_Terminal_Homebrew_Osx Yosemite - Fatal编程技术网

关于自制软件安装的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