When I try to use MacVim from the command line, I get
dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib
Referenced from: /Applications/MacVim.app/Contents/MacOS/Vim
Reason: image not found
Trace/BPT trap: 5
I tried brew install -update perl
, but then I found that the issue is not Perl. It is where Vim is looking.
$ ls /usr/local/opt/perl/lib/
5.20.1
I tried brew install -update macvim
, but the perl version from the command line doesn't work right either.
MBP:mysite $ perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
Summary, I have MacVim looking for Perl version 5.12; I have the terminal using Perl 5.18.2; I have version 5.20.1 installed. How do I repoint everything?
$ ls -l /usr/bin/perl*
-rwxr-xr-x 1 root wheel 58416 Sep 9 2014 /usr/bin/perl
-rwxr-xr-x 1 root wheel 35600 Sep 9 2014 /usr/bin/perl5.16
-rwxr-xr-x 1 root wheel 35600 Sep 9 2014 /usr/bin/perl5.18
-rwxr-xr-x 38 root wheel 811 Sep 9 2014 /usr/bin/perlbug
...
I did find this related question, which is not answered.