在OS X上安装Homebrew [英] Installing Homebrew on OS X
问题描述
根据Homebrew网站,要安装它,我需要输入:
According to the Homebrew site, to install it, I need to type:
brew install wget
我收到一条错误消息:
-bash: brew: command not found
找到了此答案.问题是,在/usr/local/bin
中看不到 brew
.
Found this answer. The problem, however, is I don't see brew
in /usr/local/bin
.
我将以下行添加到了 .bashrc
文件
I added the below line to my .bashrc
file
export PATH=/usr/local/bin:$PATH
仍然出现找不到命令
的错误.
Still getting the command not found
error.
如何在OS X上安装Homebrew?
How do I install Homebrew on OS X?
推荐答案
它位于 Homebrew主页的顶部.
在终端提示下:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
命令 brew install wget
是一个示例,说明如何在安装brew之后使用Homebrew安装另一个应用程序(在本例中为 wget
).
The command brew install wget
is an example of how to use Homebrew to install another application (in this case, wget
) after brew is already installed.
将安装Brew的上述命令迁移到:
Above command to install the Brew is migrated to:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
这篇关于在OS X上安装Homebrew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!