title: Can't install bcrypt-ruby for new Rails installation
body: <p>I'm getting the following error on a new Rails installation. I run <code>bundle install</code> and after installing a bunch of gems, I get an error upon trying to install bcrypt-ruby. I'm using a brand new Mac with OS X 10.8.2, latest Ruby (v1.9.3-p194), new Rails (v3.2.8) and standard Gemfile.</p>
  
  <blockquote>
    <p>Installing activerecord (3.2.8)</p>
    
    <p>Installing activeresource (3.2.8)</p>
    
    <p>Installing bcrypt-ruby (3.0.1) with native extensions</p>
    
    <p>Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
    extension.</p>
  
  <pre><code>    /Users/me/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb  creating Makefile
  </code></pre>
    
    <p>make compiling bcrypt_ext.c make: /usr/bin/gcc-4.2: No such file or
    directory make: <em>*</em> [bcrypt_ext.o] Error 1</p>
    
    <p>Gem files will remain installed in
    /Users/me/.rvm/gems/ruby-1.9.3-p194@mygemset/gems/bcrypt-ruby-3.0.1
    for inspection. Results logged to
    /Users/me/.rvm/gems/ruby-1.9.3-p194@mygemset/gems/bcrypt-ruby-3.0.1/ext/mri/gem_make.out
    An error occurred while installing bcrypt-ruby (3.0.1), and Bundler
    cannot continue. Make sure that <code>gem install bcrypt-ruby -v '3.0.1'</code>
    succeeds before bundling.</p>
  </blockquote>
  
  <p><em><strong>UPDATE</em></strong>: Forgot to mention, not only in this a brand new Mac with Mac OS X 10.8.2, but also brand new Xcode installed yesterday and with command line tools. I then installed RVM and brew.</p>