title: Installing Ruby - RVM - Mac OSX Mountain Lion
body: <p>So I'm trying to install Ruby 1.9.3 on my Mac running Mountain Lion. I have xCode installed and up to date. I've installed RVM and now am trying to install Ruby using <code>rvm install 1.9.3</code> When I run this it looks like it's going to install but gives me an error please see below:</p>
  
  <pre><code>rvm install 1.9.3
  Searching for binary rubies, this might take some time.
  No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
  Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
  Installing requirements for osx, might require sudo password.
  Already up-to-date.
  Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
  Installing Ruby from source to: /Users/Colin/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
  ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
  ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
  ruby-1.9.3-p392 - #configuring........
  Error running './configure --prefix=/Users/Colin/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/Users/Colin/.rvm/opt/libyaml:/Users/Colin/.rvm/opt/readline:/Users/Colin/.rvm/opt/libxml2:/Users/Colin/.rvm/opt/libxslt:/Users/Colin/.rvm/opt/libksba:/Users/Colin/.rvm/opt/openssl:/Users/Colin/.rvm/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
  please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366429269_configure.log
  There has been an error while running configure. Halting the installation.
  </code></pre>
  
  <p>When I go to the /1366429269_configure.log file it says this:</p>
  
  <pre><code>[2013-04-19 20:41:09] ./configure
  configure: WARNING: unrecognized options: --without-tcl, --without-tk
  checking build system type... x86_64-apple-darwin12.2.1
  checking host system type... x86_64-apple-darwin12.2.1
  checking target system type... x86_64-apple-darwin12.2.1
  checking whether the C compiler works... no
  configure: error: in `/Users/Colin/.rvm/src/ruby-1.9.3-p392':
  configure: error: C compiler cannot create executables
  See `config.log' for more details
  </code></pre>
  
  <p>If anyone could help me out it would be greatly appreciated!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I tried the solution here <a href="https://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues">Can&#39;t install Ruby under Lion with RVM – GCC issues</a> <code>rvm install 1.9.3 --with-gcc=clang</code> and it changed a bit, here is the new output:</p>
  
  <pre><code>rvm install 1.9.3 --with-gcc=clang
  Installing requirements for osx, might require sudo password.
  Already up-to-date.
  Certificates in '/Users/Colin/.rvm/etc/openssl/cert.pem' already are up to date.
  Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
  Installing Ruby from source to: /Users/Colin/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
  ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
  ruby-1.9.3-p392 - #extracted to /Users/Colin/.rvm/src/ruby-1.9.3-p392 (already extracted)
  ruby-1.9.3-p392 - #configuring.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
  ruby-1.9.3-p392 - #compiling..................................................................
  Error running 'make -j8',
  please read /Users/Colin/.rvm/log/ruby-1.9.3-p392/1366431470_make.log
  There has been an error while running make. Halting the installation.
  </code></pre>
  
  <p>And heres the log from that: <a href="http://pastebin.com/P6nTZRQY" rel="nofollow noreferrer">http://pastebin.com/P6nTZRQY</a></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Not sure what happened but I just tried the same thing and now it's working perfect. Thank you everyone who left a helpful comment, it's greatly appreciated!</p>