mac Vim异常退出

dyld[68847]: Library not loaded: '/usr/local/opt/ruby/lib/libruby.3.1.dylib'

Referenced from: '/usr/local/Cellar/vim/9.0.0050/bin/vim'

Reason: tried: '/usr/local/opt/ruby/lib/libruby.3.1.dylib' (no such file), '/usr/local/lib/libruby.3.1.dylib' (no such file), '/usr/lib/libruby.3.1.dylib' (no such file), '/usr/local/Cellar/ruby/3.2.2/li

b/libruby.3.1.dylib' (no such file), '/usr/local/lib/libruby.3.1.dylib' (no such file), '/usr/lib/libruby.3.1.dylib' (no such file)

[1] 68847 abort vim

在这里插入图片描述

终端输入命令

sudo chown -R $(whoami) $(brew --prefix)/*
brew reinstall ruby vim

你可能感兴趣的:(vim,macos,编辑器)