title: Error installing Ruby in Yosemite
body: <p>I have recently updated my OS X to 10.10 and since then facing issue installing ruby through RVM. There is a dependency on gcc46 which I am unable to resolve. Any help is appreciated. Below is the error stack.</p>
  
  <pre><code>rvm reinstall ruby-1.9.3-p547
  ruby-1.9.3-p547 - #removing src/ruby-1.9.3-p547 - please wait
  ruby-1.9.3-p547 - #removing rubies/ruby-1.9.3-p547 - please wait
  Searching for binary rubies, this might take some time.
  No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p547.
  Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
  Checking requirements for osx.
  Installing requirements for osx.
  Updating system - please wait
  Installing required packages: gcc46 - please wait
  Error running 'requirements_osx_brew_libs_install gcc46',
  showing last 15 lines of /Users/saurabh/.rvm/log/1414321731_ruby-1.9.3-p547/package_install_gcc46.log
  +rvm_pretty_print:10&gt; case stdout (stdout)
  +rvm_pretty_print:11&gt; [[ -t 1 ]]
  +rvm_pretty_print:11&gt; return 1
  +rvm_warn:4&gt; printf %b 'There were package installation errors, make sure to read the log.
  
  Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
  
  Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
  There were package installation errors, make sure to read the log.
  
  Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
  
  Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
  +requirements_osx_brew_libs_install:11&gt; case 10.10 (10.6)
  +requirements_osx_brew_libs_install:18&gt; return 1
  Requirements installation failed with status: 1.
  
  brew install gcc46                
  ==&gt; Installing gcc46 from homebrew/homebrew-versions
  gcc46: OS X Mavericks or older is required for stable.
  Use `brew install devel or --HEAD` for newer.
  Error: An unsatisfied requirement failed this build.
  </code></pre>
  
  <p><strong>EDIT :</strong> </p>
  
  <p>I was able to install using below command.</p>
  
  <pre><code>rvm install 1.9.3 --with-gcc=clang
  </code></pre>
  
  <p>Could someone help me understand what's the difference with the above command? Thanks</p>