8

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

AdamT
  • 6,405
  • 10
  • 49
  • 75
  • solved. not sure this is the correct way to do it but i installed 1.9.3-p125. 1.9.3-p194 is still my default though. – AdamT Jul 02 '12 at 02:58
  • just answer your own question and click it as the right answer :) – Hassek Jul 02 '12 at 05:19
  • You probably need to rebuild macvim against 1.9.3-p194. How did you install macvim in the first place? – Randy Morris Jul 02 '12 at 11:07
  • @RandyMorris to install macvim i believe i used homebrew. do i need to rebuild macvim to ruby 1.9.3-p194? if so, how do i do it? – AdamT Jul 02 '12 at 16:39
  • I'm not sure how to force it to rebuild, you may just have to `brew remove macvim` and then `brew install macvim` with the newer ruby installed. – Randy Morris Jul 02 '12 at 17:11
  • FYI: I was getting a similar error in MacVim as installed by MacPorts. Reinstalling should work. – jvriesem Aug 24 '15 at 16:49

1 Answers1

16

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.

Remear
  • 1,927
  • 12
  • 19