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

标签 vim homebrew macos-mojave

我正在尝试在 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

关于vim - 我在链接 brew 的 vim 版本时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61901147/

相关文章:

vim:日志文件的自定义突出显示

vim - 在vim中删除列

macos - 在 os x yosemite 中更新 Openssl

php - macOS Mojave 更新后 Apache 不工作

macos - macOS Mojave 中的 CoreMediaIo DAL 虚拟相机替代品是什么

c++ - Vim 将长字符串分成几个

phpunit 的 Vim 错误格式

clang - brew install clang-omp 不工作

mysql - 为什么我的密码在 mysql 中不起作用?苹果

code-signing - 如何在 Xcode 10 和 macOS 10.14 下为 XCTest UI 测试启动 WireMock?