Help us understand the problem. What is going on with this article?

vimがdyld: Library not loadedで起動できなくなった [mac]

More than 1 year has passed since last update.

現象

bashrcでも修正しようとターミナルからvimを起動しようとすると、以下のエラーが出て起動しない

$ vim .bashrc
dyld: Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/Python
  Referenced from: /usr/local/bin/vim
  Reason: image not found
Abort trap: 6

python? 最近pythonなんか使ったっけ... いや使ってない
というかvim関係ある?

原因がよく分からない

解決方法

ググったらbrew upgradeしろとある
vimが「dyld: Library not loaded」エラーが出て起動できない(MacOS High Sierra) - Qiita https://qiita.com/tomo62/items/9192477a4109f6a71eb8

よく分からんので、とりあえずbrew upgradeしよう

$ brew upgrade
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Deleted Formulae
mediatomb

==> Upgrading...略

upgrade終わって、vimを起動させてみると

お、起動した

スクリーンショット 2018-09-12 17.52.53.png

解決した、なんだったんだろうか

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away