I use Homebrew as the package manager. I run this command:
brew update
But I got this error:
error: unable to unlink old 'bin/brew' (Permission denied)
Error: Failed while executing git pull http://github.com/mxcl/homebrew.git master
Running again under sudo:
/usr/local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local/Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG error: The following untracked working tree files would be overwritten by checkout:.gitignore
;;; big list goes here ;;;;
And now, every brew command generates these warning:
/usr/local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local/Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG
Any idea what is going wrong?