問題:
According to the Homebrew site, to install it, I need to type:根據 Homebrew 站點,要安裝它,我需要輸入:
brew install wget
I get an error message:我收到一條錯誤消息:
-bash: brew: command not found
Found this answer .找到了這個答案。 The problem, however, is I don't see brew
in /usr/local/bin
.然而,問題是我在/usr/local/bin
沒有看到brew
。
I added the below line to my .bashrc
file我.bashrc
下行添加到我的.bashrc
文件中
export PATH=/usr/local/bin:$PATH
Still getting the command not found
error.仍然收到command not found
錯誤。
How do I install Homebrew on OS X?如何在 OS X 上安裝 Homebrew?
解決方案:
參考一: https://en.stackoom.com/question/1NW3s參考二: https://stackoom.com/question/1NW3s