Install GNU GCC on mac May 17, 2023 by Tarik Homebrew now has the GCC package so you can install it with this command: brew install gcc