vim ruby mismatch on Mac High Sierra

前端 未结 6 745
别跟我提以往
别跟我提以往 2021-02-05 02:03

I recently upgraded my Mac to High Sierra

After the upgrade, Macvim (mvim) stopped working because (I assume) HighSierra upgraded ruby to 2.3, and mvim

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 02:39

    ➜  ~ 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
    

    I tried brew uninstall install update... All failed. And install_name_tool works for me.

    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
    

提交回复
热议问题