zoukankan      html  css  js  c++  java
  • Could not link: /usr/local/etc/bash_completion.d/brew

    用终端 brew updatebrew install ** 时遇到的问题,详细如下:

    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.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: You must `brew link autoconf makedepend` before pyenv can be installed
    

    如图所示:

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

     $ 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
    

    PS: 其实提示中也把解决方法说了出来,即删除相应的目录,然后再运行 brew update

  • 相关阅读:
    Linux系统类别
    ST-GCN基于skeleton的动作识别
    (gcc/g++)/clang/cl编译器
    羽毛球经典教材范例
    opencv批量读取图片
    十六、mysql 变量
    十五、mysql 存储过程
    十四、mysql 视图
    十三、mysql TCL语言
    十二、mysql 标识列
  • 原文地址:https://www.cnblogs.com/jaxer/p/6738640.html
Copyright © 2011-2022 走看看