There are a number of additional dependencies required for getting things installed on OS X. Starting with a blank slate OS X machine, this is the process it takes:
# Install Xcode Command Line Tools
# Install Homebrew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Some deps
brew install node spidermonkey closure-compiler yuicompressor
brew install llvm --with-clang
cd ~/Repos
git clone git://github.com/kripken/emscripten.git
@larsxschneider - yes, I messed with the homebrew script with an ugly, ugly kludge - see below. It worked, but I wanted the developer's opinion of what the most appropriate solution was.
@shovon - unfortunately your solution gives me a 'wget not found' complaint when I try and run your script on OSX 10.8.2. For those using homebrew, I offer the following, with absolutely no promises as to whether it's actually a good idea or not - but it's my best guess and it worked for me:
Hack the brew script to an older version. Please feel free to educate me on how to do this better:
brew edit llvm --with-clang
replace these lines:
url 'http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz'
sha1 'ccd6dbf2cdb1189a028b70bcb8a22509c25c74c8'
with these lines:
url 'http://llvm.org/releases/3.2/clang-3.2.src.tar.gz'
sha1 'b0515298c4088aa294edc08806bd671f8819f870'
and these lines:
url 'http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz'
sha1 'c6c22d5593419e3cb47cbcf16d967640e5cce133'
with these lines:
url 'http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz'
sha1 '42d139ab4c9f0c539c60f5ac07486e9d30fc1280'
then reinstall:
brew install llvm --with-clang
Again, use at your own risk - shovon's wget-based solution may well be a better idea, but this worked for me where wget didn't.