Bash 自制最新,但我是否需要担心“无法链接”+`删除路径错误?
我已经使用homebrew成功安装了rvm和ocaml软件包,但我一直想知道Bash 自制最新,但我是否需要担心“无法链接”+`删除路径错误?,bash,unix,homebrew,Bash,Unix,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
$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
并完全删除“删除我”路径,以及mkdir
无法链接的路径?所有指定的文件都只是符号链接,所以不用担心,只需删除它们即可
要确保它们是符号链接,可以运行以下操作:
file -h <what you want to inspect>
文件-h
rm-rf文件名
在你的情况下,它应该是如下
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谢谢您的保证。我读了一些关于符号链接的内容,然后删除了它们
rm-rf/path
brew update
runs clean nowUpdated 1 tap(caskroom/cask)。公式不变。
Ah,谢谢。不知道灰色复选标记是可点击的!嗯,我在点击之前忘了那是灰色的。