Search code examples
macosgccllvmosx-mountain-lionrbenv

Install gcc in Mountain Lion


I need GCC for some Ruby gems. And I need LLVM as well for iOS development using Xcode 4.4. I already have LLVM installed through Xcode.

How can I install GCC in Mountain Lion without affecting any of LLVM binaries?


Solution

  • I had Homebrew. So I did this.

    brew install --enable-all-languages https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb
    

    It worked!