根据 Homebrew 网站,要安装它,我需要输入:
brew install wget
我收到一条错误消息:
-bash: brew: command not found
Found 这个答案 https://stackoverflow.com/questions/14288682/error-installing-homebrew-brew-command-not-found。然而问题是我看不到brew
in /usr/local/bin
.
我将以下行添加到我的.bashrc
file
export PATH=/usr/local/bin:$PATH
仍然得到command not found
error.
如何在 macOS 上安装 Homebrew?
它位于顶部自制主页 http://brew.sh/.
从终端提示符处:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
命令brew install wget
是如何使用 Homebrew 安装另一个应用程序的示例(在本例中,wget
)在brew已经安装之后。
历史性...
大约在 2020 年之前,Homebrew 页面上给出的命令是:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)