How to point MacVim to the right perl on OSX 10.10?

I have solution, not a great one, but it works for fixing MacVim.

brew uninstall macvim
brew install macvim
brew linkapps macvim

Worked for me. Hopefully, the related question above will be the answer to my Perl version problem.


You can try to symlink the Perl 5.18 as 5.12:

sudo ln -s /System/Library/Perl/5.18 /System/Library/Perl/5.12

This will take care of the Perl problem, but it did just lead to next error:

mvim
dyld: Library not loaded: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/libruby.1.dylib
  Referenced from: /Applications/MacVim.app/Contents/MacOS/Vim
  Reason: image not found

This is potentially bigger problem because there is greater chance of incompatibilities between Ruby 1.8 and Ruby 2.0 libraries.

ll /System/Library/Frameworks/Ruby.framework/Versions/
total 4.0K
drwxr-xr-x 7 root 238 Jul  3 16:39 2.0
lrwxr-xr-x 1 root   3 Jul  3 14:18 Current -> 2.0

At this point I have given up and used the above method, which worked fine.


I was hitting this problem after upgrading to 10.11, and the accepted solution didn't work for me. I found that the problem was not with the updated MacVim install, but rather that the mvim script was finding an old MacVim binary I didn't even know I had rather than the freshly-updated one.

So, if anyone hits this problem and the above fix doesn't work, look closely at this line in your error output:

  Referenced from: /Applications/MacVim.app/Contents/MacOS/Vim

and make sure it's referencing the location of MacVim you expect it to be using!

(Mine was finding one in ~/bin/)