在 OS X 上安装 Homebrew [英] Installing Homebrew on OS X
本文介绍了在 OS X 上安装 Homebrew的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据 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
仍然出现 command not found
错误.
如何在 OS X 上安装 Homebrew?
How do I install Homebrew on OS X?
推荐答案
它位于 Homebrew 主页的顶部.
从终端提示:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
命令 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.
历史...
大约在 2020 年之前,Homebrew 页面上给出的命令是:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
这篇关于在 OS X 上安装 Homebrew的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文