您的位置:首页 > 运维架构 > Shell

Error: Could not link:/usr/local/etc/bash_completion.d/brew

2017-04-02 10:44 405 查看
在brew update 或brew install某东东时出现下面的提示

$ brew update

Updated 1 tap (homebrew/core).

==> Updated Formulae

libhttpseverywhere
Error: Could not link:

/usr/local/etc/bash_completion.d/brew

Please delete these paths and run `brew update`.

Error: Could not link:

/usr/local/share/zsh/site-functions/_brew

Please delete these paths and run `brew update`.

Error: Could not link:

/usr/local/share/man/man1/brew-cask.1

/usr/local/share/man/man1/brew.1

Please delete these paths and run `brew update`.

Error: Could not link:

/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.





解决办法是有几处路径Error 就全部rm  [b]-rf,如下
[/b]

$ rm -rf /usr/local/share/doc/homebrew

 $ rm -rf /usr/local/share/man/man1/brew-cask.1

 $ rm -rf /usr/local/share/man/man1/brew.1

 $ rm -rf /usr/local/share/zsh/site-functions/_brew

 $ rm -rf /usr/local/etc/bash_completion.d/brew


 $ brew update

Already up-to-date.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐