美文网首页
如果vim无法使用了(image not found)

如果vim无法使用了(image not found)

作者: Oo晨晨oO | 来源:发表于2018-08-28 07:03 被阅读201次

有些时候, 如果迁移了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

相关文章

网友评论

      本文标题:如果vim无法使用了(image not found)

      本文链接:https://www.haomeiwen.com/subject/ksnxwftx.html