Can't install Homebrew on Mac OS X Lion
Solution 1:
Try this: sudo /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
.
Solution 2:
I just struggled with the same problem, but instead of manually entering any commands†, I used gist: 768518 to do the dirty stuff for me. Worked like a charm—and you won't need any sudo
ing!
The aforementioned gist (aptly described as "Fix permissions on /usr/local for Homebrew") only fixes the permissions, i.e. it doesn't install Homebrew despite the fact it is a fork of the installation script.
†) other than the required $ chmod a+x fix_homebrew.rb
and $ ./fix_homebrew.rb
of course
Solution 3:
the official oneliner from brew.sh is this...
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
why would you like to use a outdated gist version and not the original script???