1.**It’s easier**<br>`/usr/local/bin` is already in your
`PATH`.
2.**It’s easier**<br>Tons of build scripts break if their dependencies
aren’t in either `/usr` or `/usr/local`. We
fix this for Homebrew formulae (although we don’t always test for
it), but you’ll find that many RubyGems and Python setup scripts
break which is something outside our control.
3.**It’s safe**<br>Apple has left this directory for us. Which means
there is no `/usr/local` directory by default, so there
is no need to worry about messing up existing tools.
**If you plan to install gems that depend on
brews then save yourself a bunch of hassle and install to
`/usr/local`!**
It is not always straightforward to tell `gem` to look in non-standard directories for headers and libraries. If you choose `/usr/local`, many things will "just work".
### Why does Homebrew say sudo is bad? <a name="sudo"></a>
**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 you `chown root /Applications/TextMate.app`? Probably
not. So is it that important to `chown root wget`?
If you need to run Homebrew in a multi-user environment, consider
creating a separate user account especially for use of Homebrew.
If it’s been a while, bump it with a “bump” comment. Sometimes we miss requests and there are plenty of them. Maybe we were thinking on something. It will encourage consideration. In the meantime if you could rebase the pull request so that it can be cherry-picked more easily we will love you for a long time.
Yes! It’s easy! Just `brew edit $FORMULA`. You don’t have to submit modifications back to *Homebrew/homebrew-core*, just edit the formula as you personally need it and `brew install`. As a bonus `brew update` will merge your changes with upstream so you can still keep the formula up-to-date **with** your personal modifications!