Mac上使用Homebrew安装遇到问题

3

按照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,但最近已经不存在了。 - chepner
1个回答

9
提供的URL对我也不起作用,但这个可以:

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

我怀疑 GitHub 的某些内容已经发生了变化。

完美,问题解决了!谢谢詹姆斯。还有感谢GitHub。:| - Charles
这对我没有解决问题。我已经安装了Xcode、Xcode工具和Xcode终端工具(最新版本),我也尝试了sudo命令。 - TheBlackBenzKid

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接