しぐまっく

愛機MacBook Pro(Mid 2010)を研究やら趣味やらに使っている際のおぼえがき.homebrewとかlinuxとかwebサービスとかも.

Homebrew奮闘記

久々にHomebrewで何か入れようとするときに限ってエラーが起きる.brew doctor で出てくるエラーや brew update がエラーでうまく行かないかったことについて以下記載.

brew update 時のmergeエラー

$ brew update
error: Your local changes to the following files would be overwritten by merge:
 ~~~
error: The following untracked working tree files would be overwritten by merge:
 ~~~
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

これには

$ cd /usr/local
$ git fetch origin
$ git reset --hard origin/master

で対処.

$ brew doctor
  • /usr/local/lib 下のunexpectedなdylibを削除.
  • missing dependenciesをインストール