Obviously installing gcc from source will require a compiler to build it; is it possible to install gcc without Xcode?
MacOS – How to build and install gcc5 in OS X 10.11 without Xcode
gccmacosxcode
Related Question
- MacOS – the relationship between the OS release, the XCode release, and the default compiler
- MacOS – What build flags are available for brew install of gcc
- Where to find ARM GCC compiler in XCODE5
- My Xcode build requires cURL 8.0.0 or later (which doesn’t exist)
- MacOS – Yosemite – Change default C and fortran compilers
- MacOS – How to accept Xcode license
- How to configure Xcode external build system to build and clean using standard short-cuts
Best Answer
You can find several versions of gcc for different OS X flavors here: HPC Mac OS X.
Addition in square brackets by me...
Please also visit Information Security Stack Exchange and search for questions about the security risks associated with precompiled compilers from "unknown" sources.