Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc.

How can I get a real gcc installed so that e.g. make will see the standard gcc instead of the LLVM compiler?

share|improve this question
add comment

1 Answer 1

Since Apple has bundled it's own version of gcc/llvm, you need to enable homebrew/versions repo before you can install different version of GCC.

brew tap homebrew/versions
brew install gcc48

Replace gcc48 with the version of gcc you want.

See also https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.