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?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Since Apple has bundled it's own version of
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.