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