在 OS X 上安裝 Homebrew - Installing Homebrew on OS X

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章