在Mac上安装Homebrew问题

时间:2013-11-20 19:32:03

标签: macos bash homebrew

按照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

对解决方案的任何想法?感谢。

1 个答案:

答案 0 :(得分:9)

提供的网址对我来说也不起作用,但这样做:

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

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

相关问题