“dyld: Library not loaded”, “libruby.1.9.1.dylib” when calling “mvim .” in the command line

只谈情不闲聊 提交于 2019-12-01 00:41:24

问题


I'm trying to open my rails project into mvim (macvim) using "mvim ." but I get the following error.

➜  cs193p git:(master) mvim .
dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib
  Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim
  Reason: image not found
[1]    85219 trace trap  mvim .
➜  cs193p git:(master) mvim --version
dyld: Library not loaded: /Users/myusername/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.1.9.1.dylib
  Referenced from: /usr/local/Cellar/macvim/7.3-64/MacVim.app/Contents/MacOS/Vim
  Reason: image not found

I recently removed RVM ("rvm implode" which included ruby 1.9.3-p125) and reinstalled 1.9.3-p194. What do I need to do to fix this?

Thank you


回答1:


brew will compile MacVim against your currently active ruby which was probably 1.9.3-p125. rvm use 1.9.3-p194 --default && brew uninstall macvim && brew install macvim is probably your best bet to fix your problem.



来源:https://stackoverflow.com/questions/11287274/dyld-library-not-loaded-libruby-1-9-1-dylib-when-calling-mvim-in-the-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!