51
11
I've not run brew update && brew upgrade
for a long time.
I just did a massive upgrade which turned out to broke my Vim.
This is what I got after running vim
:
dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.3.0.dylib Referenced from: /usr/local/bin/vim Reason: image not found Trace/BPT trap: 5
I've came across some websites but none of them were actually helpful.
They said that it might be related to rvm
but brew uninstall vim; rvm system; brew install vim
didn't help. I tried to reinstall my MacVim as well but it didn't solve the problem.
Adding export PATH="/usr/local/bin:$PATH"
to my .bash_profile
didn't help either.
Here's the list for future reference:
- How to point MacVim to the right perl on OSX 10.10?
- vim 7.4.488 build fails if Homebrew ruby is installed but /usr/bin/ruby comes first in PATH
- brew installed Vim in Terminal with RVM (Ruby 1.9.3), MacVim and Command-T
- OS X El Capitan: Could not open library 'libc.dylib'
What happened to my Vim? How can I fix it?
Now perhaps you could try:
– taper – 2017-11-10T12:12:23.830xcode-select --install
and thenbrew upgrade
, as suggested in section Upgrading macOS at Common Issues