【问题标题】:Issue with Homebrew install on Mac在 Mac 上安装 Homebrew 的问题
【发布时间】:2013-11-20 19:32:02
【问题描述】:

按照 Homebrew 安装指南的规定,我在终端中输入以下内容:

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

它吐出的内容如下:

-e:4: syntax error, unexpected '<'
<!DOCTYPE html>
 ^
-e:5: syntax error, unexpected '<'
<html>
 ^
-e:7: syntax error, unexpected '<'
    <meta charset='utf-8'>
     ^
-e:8: syntax error, unexpected '<'
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
     ^
-e:8: syntax error, unexpected tIDENTIFIER, expecting end-of-input
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

此时,运行任何 brew 命令都会返回以下内容:

-bash: brew: command not found

对解决方案有任何想法吗?谢谢。

【问题讨论】:

  • 您在哪里找到这些说明?它似乎是安装页面的旧版本中存在的 URL,但最近没有。

标签: macos bash homebrew


【解决方案1】:

提供的 URL 对我也不起作用,但这样做:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

我怀疑 GitHub 发生了一些变化。

【讨论】:

  • 完美,问题解决!谢谢詹姆斯。并“感谢”GitHub。 :|
  • 这并没有为我解决。我已经安装了 xcode、xcode 工具、xcode 终端工具(最新版本)我也尝试过 sudo。
猜你喜欢
  • 2023-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-11-16
  • 2013-01-15
  • 2015-02-14
  • 2017-07-21
  • 1970-01-01
相关资源
最近更新 更多