酿造更新坏了什么? [英] brew update broke something?

查看:49
本文介绍了酿造更新坏了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Homebrew正常且正常工作,直到我执行brew update(几个月都没有更新)为止. brew更新完成后,每个brew命令都会产生相同/相似的错误消息:

Homebrew was working fine and normal till I did a brew update (haven't update for months). After brew update was finished, every brew command results in the same/similar error message:

/usr/local/Library/Homebrew/global.rb:6:in `require': no such file to load -- set (LoadError)
from /usr/local/Library/Homebrew/global.rb:6 
    from /usr/local/bin/brew:17:in `require'
    from /usr/local/bin/brew:17

我检查了目录,似乎自制文件在那里.由于某种原因,它只是没有加载文件.由于brew命令不起作用,我使用git进行了重新安装.但是仍然出现相同的错误.

I checked the directory and it seems like the homebrew files are there. It is just not loading the file for some reason. I did a reinstall using git since brew command doesn't work. But still got the same error.

非常感谢您提供有关如何解决此问题的帮助.如果找不到任何内容,我可能必须重新安装操作系统.

Any help on how I may resolve this issue is much appreciated. I might have to reinstall the os if I can't figure out anything.

更新:我对操作系统进行了全新安装.如果不重新安装就无法找到解决方案.

Update: I did a clean install of the OS. Wasn't able to find a solution without reinstalling.

推荐答案

我遇到了同样的问题.而以下解决了它:

I have met the same problem. And the following solved it:

sudo chown -R $USER:admin /usr/local
cd /usr/local
git reset --hard origin/master
brew update

请参见 https://github.com/mxcl/homebrew/issues/19140

这篇关于酿造更新坏了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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