mxcl/homebrew — Issue #9259: Homebrew Install Fails on OSX 10.6.8
Author: jvenator
Created: 2011-12-24 01:16:22+00:00
State: open

I'm failing in my attempts to get homebrew installed on my Mac. I get the following output from within the Terminal (didn't paste all of it for reasons of length...):

```
Last login: Fri Dec 23 19:17:09 on ttys001
#!/bin/sh
j(~)$ #!/bin/sh
j(~)$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/Library
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/doc
/usr/local/share/aclocal

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Library /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/doc /usr/local/share/aclocal
Password:
==> Downloading and Installing Homebrew...
Library/Contributions/brew_bash_completion.sh: Can't unlink already-existing object: Permission denied
Library/Contributions/brew_fish_completion.fish: Can't unlink already-existing object: Permission denied
Library/Contributions/brew_zsh_completion.zsh: Can't unlink already-existing object: Permission denied
Library/Contributions/examples/brew-bottle.rb: Can't create 'Library/Contributions/examples/brew-bottle.rb': Permission denied
Library/Contributions/examples/brew-dirty.rb: Can't unlink already-existing object: Permission denied
```

I attempted following suggestions from [this issue string](https://github.com/mxcl/homebrew/issues/5128) here on github, but that didn't work either... Any help is much appreciated.