【问题标题】:SSL issue on Homebrew installationHomebrew 安装中的 SSL 问题
【发布时间】:2015-12-05 08:32:40
【问题描述】:

当我尝试使用终端安装 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 config --global --unset core.gitproxy

但又失败了。

请帮忙。

【问题讨论】:

    标签: ssl terminal homebrew osx-yosemite


    【解决方案1】:

    你必须为 git 设置代理

    git config --global --add http.proxy proxyHost:proxyPort
    

    但您还必须为 Homebrew 本身设置代理:

    export ALL_PROXY=proxyHost:proxyPort
    

    【讨论】:

      猜你喜欢
      • 2013-01-15
      • 2015-02-14
      • 1970-01-01
      • 1970-01-01
      • 2015-07-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      相关资源
      最近更新 更多