安装Homebrew时出错 [英] Error installing Homebrew

查看:98
本文介绍了安装Homebrew时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用其主页上提到的命令在系统上安装Homebrew

I am trying to install Homebrew on my system with the command mentioned on their homepage

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命令.

If I try to do cleanup, it says that it can't find brew command. I'm clueless here as to if I have it installed on my machine why can't I run any of the brew commands.

推荐答案

运行此:

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

这篇关于安装Homebrew时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆