自制软件是最新的,但我是否需要担心“无法link”+“删除路径”错误?
Homebrew up-to-date, but do I need to worry about `could not link` + `delete path` errors?
我已经使用 homebrew 成功安装了 rvm 和 ocaml 包,但我一直想知道 $ brew update
输出末尾的错误。例如,当我 运行 时,刚才 bash 的输出是:
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/doc/homebrew
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
我的同事说不用担心,但是...我担心。我能做些什么来修复它们?就运行 rm
把"delete me" 条路径全抹掉,还有mkdir
不能链接的路径?
所有指定的文件都只是符号链接,所以不用担心,只需删除它们即可。
要确保它们是符号链接,您可以运行这样做:
file -h <what you want to inspect>
rm -rf FILE_NAME
你的情况应该如下
rm -rf /usr/local/etc/bash_completion.d/brew
rm -rf /usr/local/share/doc/homebrew
rm -rf /usr/local/share/zsh/site-functions/_brew
等等
这对我有用:
../usr/local/..$rm -rf /usr/local/share/doc/homebrew
然后
../usr/local/..$brew upgrade
只需尝试删除终端上显示的路径
$ rm -rf [路径]
示例:
$ rm -rf /usr/local/share/doc/homebrew
我已经使用 homebrew 成功安装了 rvm 和 ocaml 包,但我一直想知道 $ brew update
输出末尾的错误。例如,当我 运行 时,刚才 bash 的输出是:
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/doc/homebrew
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
我的同事说不用担心,但是...我担心。我能做些什么来修复它们?就运行 rm
把"delete me" 条路径全抹掉,还有mkdir
不能链接的路径?
所有指定的文件都只是符号链接,所以不用担心,只需删除它们即可。
要确保它们是符号链接,您可以运行这样做:
file -h <what you want to inspect>
rm -rf FILE_NAME
你的情况应该如下
rm -rf /usr/local/etc/bash_completion.d/brew
rm -rf /usr/local/share/doc/homebrew
rm -rf /usr/local/share/zsh/site-functions/_brew 等等
这对我有用:
../usr/local/..$rm -rf /usr/local/share/doc/homebrew
然后
../usr/local/..$brew upgrade
只需尝试删除终端上显示的路径
$ rm -rf [路径]
示例: $ rm -rf /usr/local/share/doc/homebrew