-
brew update
でエラー -
brew doctor
を行うとたくさんのエラーたちが・・・orz
主なエラーさん達
Warning:/usr/local/bin isn't writable.
Warning: /usr/local/share isn't writable.
Warning: Some directories in /usr/local/share/man aren't writable.
Warning: You have unlinked kegs in your Cellar
Warning: You have uncommitted modifications to Homebrew
解決方法
- 大体はエラーと共に解決方法が出てくるので、それを行う
メモ
-
$(whoami)
を使うとユーザ名が勝手に入る。ブラボー -
sudo chgrp 対象グループ 対象ディレクトリ名
も忘れずに?例:sudo chgrp admin /hoge/hoge
-
You have unlinked kegs in your Cellar
- 今回はansibleで怒られたので、下記の様にした
brew link ansible
- 今回はansibleで怒られたので、下記の様にした
-
Warning: You have uncommitted modifications to Homebrew
- インストールしたときのGitのゴミファイルが残ってる
-
cd /usr/local/Library && git stash && git clean -d -f
で解決
-
- インストールしたときのGitのゴミファイルが残ってる
今後も何かあれば追加していきます