Komuro-no-MacBook-Air:~ komuro$ sudo brew install pythonsudoじゃだめなのか?と思ってsuになってやってみた
Password:
Cowardly refusing to `sudo brew install'
Komuro-no-MacBook-Air:~ komuro$ sudo su調べたところ、brewは権限を昇格させる必要がないように設計されており、むしろsudo権限がある状態でのbrew操作しないようにしているそうです。
sh-3.2# brew install python
Cowardly refusing to `sudo brew install'
https://github.com/mxcl/homebrew/wiki/FAQ
Why does Homebrew say sudo is bad?
tl;dr Sudo is dangerous, and you installed TextMate.app without sudo anyway.
Homebrew is designed to work without using sudo. You can decide to use it but we strongly recommend not to do so. If you have used sudo and run into a bug then it is likely to be the cause. Please don’t file a bug report unless you can reproduce it after reinstalling Homebrew from scratch without using sudo.
You should only ever sudo a tool you trust. Of course, you can trust Homebrew ;) But do you trust the multi-megabyte Makefile that Homebrew runs? Developers often understand C++ far better than they understand make syntax. It’s too high a risk to sudo such stuff. It could break your base system, or alter it subtly.
And indeed, we’ve seen some build scripts try to modify/usr
even when the prefix was specified as something else entirely.
Did youchown root /Applications/TextMate.app
? Probably not. So is it that important tochown root wget
?
make sense!