码迷,mamicode.com
首页 > Windows程序 > 详细

更新OS X El Capitan系统后,brew update报错,解决方案

时间:2015-11-06 14:40:17      阅读:913      评论:0      收藏:0      [点我收藏+]

标签:

报错结果:

bash-3.2# brew update

Error: Cowardly refusing to `sudo brew update`

 

解决方案:

顺序执行以下即可:

ls -al `which brew`

sudo chown root:wheel `which brew`

sudo chown : `chown brew`

 

执行结果: 

bash-3.2# ls -al `which brew`
-rwxr-xr-x  1 huanghonglin  admin  791 10 26 15:57 /usr/local/bin/brew
bash-3.2# sudo chown root:wheel `which brew`
bash-3.2# sudo chown : `chown brew`
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
       chown [-fhv] [-R [-H | -L | -P]] :group file ...
usage: chown [-fhv] [-R [-H | -L | -P]] owner[:group] file ...
       chown [-fhv] [-R [-H | -L | -P]] :group file ...
bash-3.2# brew update
Updated Homebrew from eabf890b to ec15ed4a.
==> New Formulae
appledoc                   postgrest                  walkmod                  
docker-machine-parallels   unicorn                  
==> Updated Formulae
appscale-tools  docker-machine  epubcheck       libressl        sonar         
caf             docker-swarm    fzf             logtalk         sqlite        
cake            elasticsearch   git             macvim        
dmd             embulk          jpeg-turbo      monetdb       
docker-compose  entr            kubernetes-cli  pyenv         
==> Renamed Formulae
cyassl -> wolfssl

 

更新OS X El Capitan系统后,brew update报错,解决方案

标签:

原文地址:http://www.cnblogs.com/S-yesir/p/4942431.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!