您的位置:首页 > 大数据 > 人工智能

Cowardly refusing to `sudo brew update` or failure

2015-11-30 16:31 453 查看
First find out what is the current ownership of the installed package of brew (you will need this info in the last step)

ls -al `which brew`

Change the user and group of brew to root and wheel respectively:

sudo chown root:wheel `which brew`

Now execute your brew command as root, for eg. sudo brew link mcrypt. Lastly, revert back the ownership of brew to what you had found out in step 1 above

sudo chown : `chown brew`


brew
update failure while executing git checkout

$ cd `brew --prefix`
$ git remote add origin https://github.com/Homebrew/homebrew.git $ git fetch origin
$ git reset --hard origin/master
$ brew update
Already up-to-date.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: