brew安装错误:已经安装了homebrew

unknown7cd1c37eb7ca:local shoaibali$ruby -e "$(curl -fsSL   https://raw.github.com/mxcl/homebrew/go)"
-e:67: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
-e:96: warning: Insecure world writable dir /usr/local/bin 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
unknown7cd1c37eb7ca:local shoaibali$ls
CONTRIBUTING.md     foreman         hw_mp_userdata
Library         git         libexec
PortDetect.log      heroku          opt
bin         hw_mobile_userdata  share
unknown7cd1c37eb7ca:local shoaibali$

嘿伙计们,当我尝试安装ffmpeg时,我的brew有些问题.我想我做了不成熟的事情(注意 – 经过几个小时的尝试)卸载brew(通过我在线阅读的一些文章)并尝试重新安装它.但是当我尝试再次安装brew时,上面的输出会出现在我的终端中.如果显然没有Cellar文件,怎么能说已经安装了Homebrew?

我遇到过同样的问题.
没有名为.,/usr/local/Cellar的目录,但brew安装报告已经安装.

我通过以下方式解决了这个问题.

第1步:运行

rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup

(它报告错误并且没有成功运行.但我相信它确实清理了)

第2步:从Windows世界开始,重新启动终端

第3步:再次跑

ruby -e "$(curl -fsSL   https://raw.github.com/mxcl/homebrew/go)"

它运行成功.,

相关文章
相关标签/搜索