6
8

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.

【Mac】Homebrewが突然動かなくなったとき一度アンインストールを試してみよう

Posted at

ある日、Homebrewが動かなくなってしまいました。
そのとき、どのように対処したか記載します。

(1)brewコマンドを打ったら以下の様なエラーが出た

$brew
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0

updateも使えなくなっている。
よって、アンインストールしてから再インストールを試してみる

(2)アンインストールする

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

(3)再インストール

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

(4)動作確認

$ brew -v
Homebrew 0.9.5 (git revision a8aa; last commit 2016-01-30)

以上です。

6
8
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
6
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?