場合の対処方法vimでファイルを開こうと思ったら、以下のエラー発生
vim test.txt dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib Referenced from: /usr/local/bin/vim Reason: image not found zsh: trace trap vim test.txt
以下で調べてみたら、古いバージョンのperlをみているのが原因かもとのこと
ruby のupdateをしたらvimが動かなくなった — 鱒身(Masu_mi)のブログ
確認してみたら、5.18と5.16があるけど読み込んでいる5.12はない。。シンボリックをはってみる。
/System/Library/Perl% ls 5.16 5.18 Extras /System/Library/Perl% sudo ln -s 5.18 5.12 WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort.
ちょっと危険な匂いがしたが、シンボリックリンクだけなので、
問題あったら、消すってことでやっちゃいました。
/System/Library/Perl% ls -l total 8 lrwxr-xr-x 1 root wheel 4 Sep 25 20:12 5.12 -> 5.18 drwxr-xr-x 130 root wheel 4420 Jul 9 17:33 5.16 drwxr-xr-x 130 root wheel 4420 Sep 25 16:52 5.18 drwxr-xr-x 4 root wheel 136 Sep 10 2014 Extras
無事にvimが開けるようになりました。よっしゃ。