症状
~/src/********** (******** ✔) ᐅ vim Vagrantfile
dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.2.0.dylib
Referenced from: /usr/local/bin/vim
Reason: image not found
[1] 37759 trace trap vim Vagrantfile
改善に影響を与えたと思われるコマンド群(順不同)
brew update
brew uninstall --force ruby
brew uninstall --force openssl
brew install openssl
brew link openssl --force
brew install rbenv
rbenv install 2.2.0
rbenv global 2.2.0
echo 'export PATH=/usr/local/bin:$PATH' >> ~/.zshrc
echo 'export PATH=$HOME/.rbenv/shims:$PATH' >> ~/.zshrc
CONFIGURE_OPTS="--disable-install-rdoc --enable-shared" rbenv install 2.2.0
sudo ln -s ~/.rbenv/versions/2.2.0 /usr/local/opt/ruby