![](/img/trans.png)
[英]Upgrading Ruby using homebrew on a mac and installing berkshelp
[英]Error installing homebrew on mac
我正在嘗試使用以下命令安裝Homebrew:
ruby -e "$(curl -fsSkL 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=10">
^
-e:8: syntax error, unexpected tIDENTIFIER, expecting $end
<meta http-equiv="X-UA-Compatible" content="IE=10">
我是Ruby和Homebrew的新手,所以我們將不勝感激。
您從哪里得到該命令? 我認為您應該嘗試運行http://brew.sh首頁上列出的命令。 該命令是:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
您正在運行的命令的問題在於它會加載HTML網頁並嘗試在Ruby中運行它。 brew.sh主頁上的命令實際上會加載Ruby腳本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.