mac brew 失败

chenyibindeMacBook-Air:local benz$ brew install opencv
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

curl: (28) Operation timed out after 300137 milliseconds with 0 out of 0 bytes received
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.
chenyibindeMacBook-Air:local benz$ brew tap homebrew/science
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz

curl: (35) Server aborted the SSL handshake
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Error: Failed to install vendor Ruby.
chenyibindeMacBook-Air:local benz$ 

求救!!

阅读 7.3k
1 个回答

两个错误,一个是网络超时,另一个是 Ruby 2.3 下载失败。

如果有扶墙工具,可以看下代理设置然后让终端走代理。智能分流的话,记得设置 homebrew.bintray.coms3.amazonaws.com 走代理。

export http_proxy=http://127.0.0.1:6152
export https_proxy=http://127.0.0.1:6152

另外,你可以去看下 Ruby China 上的 Ruby 安装教程,以及软件源设置

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题