3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.2.0.dylib を治した時の記録

Posted at

#症状

~/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
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?