mac

Mac系统升级到High Sierra然后使用vim报错

把Mac Pro系统升级到了High Sierra 10.13.4 ,然后执行vim 命令,报错如下:
crh:work crh$ vim
dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib
Referenced from: /usr/local/bin/vim
Reason: image not found
Abort trap: 6
已邀请:

Geek小A - coolman

赞同来自: 采菊篱下

解决方法:
sudo install_name_tool -change  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/libruby.2.3.0.dylib /usr/local/bin/vim
参考:https://stackoverflow.com/questions/47278449/vim-ruby-mismatch-on-mac-high-sierra  

要回复问题请先登录注册