0

我知道这不是我每天都会做的事情。然而,这真的很奇怪。我安装 Homebrew 使用:ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

我实际上得到了这个回应:

"

> ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1
> 
> Press ENTER to continue or any other key to abort
> ==> Downloading and Installing Homebrew... remote: Finding bitmap roots... remote: Counting objects: 132404, done. remote: Compressing
> objects: 100% (43037/43037), done. remote: Total 132404 (delta 91508),
> reused 129108 (delta 88342) Receiving objects: 100% (132404/132404),
> 31.72 MiB | 2.51 MiB/s, done. Resolving deltas: 100% (91508/91508), done. From https://github.com/mxcl/homebrew  * [new branch]     
> master     -> origin/master HEAD is now at 27cc45c rhash 1.3.0
> Warning: /usr/local/bin is not in your PATH.
> ==> Installation successful! You should run `brew doctor' *before* you install anything. Now type: brew help

"

您实际上会认为这会安装它。但后来我这样做brew doctor了,这是回应:

冲泡帮助-bash:冲泡:找不到命令

4

1 回答 1

0

将以下内容添加到您的 shell 配置文件(即 ~/.bashrc 或 ~/.zshrc):

export PATH=/usr/local/bin:/usr/local/sbin:$PATH

开始一个新的终端会话,一切都会好起来的。

于 2013-10-17T06:48:27.223 回答