Macos 安装自制软件时出错

Macos 安装自制软件时出错,macos,osx-mountain-lion,homebrew,Macos,Osx Mountain Lion,Homebrew,我正试图用主页上提到的命令在我的系统上安装自制软件 ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" 但它给了我以下的错误- -e:67: warning: Insecure world writable dir /usr/local in PATH, mode 040777 -e:96: warning: Insecure world writable dir /usr/local in PATH, mode 04

我正试图用主页上提到的命令在我的系统上安装自制软件

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
但它给了我以下的错误-

-e:67: warning: Insecure world writable dir /usr/local in PATH, mode 040777
-e:96: warning: Insecure world writable dir /usr/local in PATH, mode 040777
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

如果我尝试清理,它会说找不到brew命令。我不知道我的机器上是否安装了它,为什么我不能运行任何brew命令。

听起来像是如果你要执行
ls-al/usr
你会看到本地目录是
drwxrwx
。。。您是否尝试过
chmod 775/usr/local
(可能需要也可能不需要
sudo

另外,brew是否安装在
/usr/local/bin/brew
中?或者其他地方?

运行以下命令:

xcode-select --install
rm -rf /usr/local/Cellar /usr/local/.git
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

我在该目录中没有看到brew。也尝试了chmod命令。
哪个brew
返回什么?什么也没有。之后没有消息。