有些时候, 如果迁移了mac, 会造成Vim无法使用.
vim Podfile 报错
dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/libruby.2.0.0.dylib
Referenced from: /usr/local/Cellar/macvim/8.0-142/MacVim.app/Contents/bin/../MacOS/Vim
Reason: image not found
[1] 4561 abort vim podfile
解决方法1
$ brew uninstall macvim
$ brew install macvim --with-lua --with-override-system-vim --with-luajit
执行完之后, 如果命令行有提示, 继续跟着做
如果上面的方法无效,使用方法2
解决方法2
如果报错信息出现了
Vim: Caught deadly signal ABRT
Vim: Finished.
Abort trap: 6
那么就这样做
$ brew reinstall python --framework
$ brew reinstall vim
$ cd ~/.vim/bundle/YouCompleteMe
$ ./install.sh
网友评论