我在链接brew的vim版本时遇到问题



我正在尝试在 Mac OS mojave 中使用 brew 安装 vim,我可以通过在终端中引入整个方向来使用它,但是当我键入vim它使用默认方向时,当我构建它时它显示此错误:

==> Pouring vim-8.2.0750.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/man/de/man1/ex.1
/usr/local/share/man/de/man1 is not writable.
You can try again using:
brew link vim

我尝试链接它,它显示了此错误:

$ brew link vim
Linking /usr/local/Cellar/vim/8.2.0750... 
Error: Could not symlink share/man/de/man1/ex.1
/usr/local/share/man/de/man1 is not writable.
MacBook-Air-de-Carlos:~ julian$ 

您必须使用以下方法设置/usr/local/share所有权:

sudo chown -R $(whoami) /usr/local/share

您必须使用以下方法设置/usr/local/share/man所有权:

sudo chown -R $(whoami) /usr/local/share

/usr/local/share/man就足够了。

相关内容

最新更新