MikeW MikeW - 16 days ago 5
Ruby Question

"No available formula for gcc46" while installing Ruby 1.9.3 on OS X with RVM:

I have Homebrew installed, I'm trying to install RVM with:

rvm install 1.9.3-head


and I get this error:


Installing required packages:gcc46
Error running 'requirements_osx_brew_libs_install gcc46',
please read /Users/mike/.rvm/log/1384918134_ruby-1.9.3-head/package_install_gcc46.log
Requirements installation failed with status: 1


brew doctor
says I'm ready to brew.

In the log I see:


Error: Download failed: ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2

Answer

Ruby 1.9.3+ supports compiling with Clang (which you do have) instead of GCC, so make RVM compile with Clang instead:

rvm install 1.9.3 --with-gcc=clang