I need to test a C++ project build on OSX using a modern GCC. I selected OS X 10.14 (osx_image: xcode9.4) for testing. I’m having trouble installing GCC using Brew. A failed setup can be found at 768581004.
I have the following in my
- | if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # We need to test modern GCC and -Wa,-q brew update && brew install gcc fi
Attempting to install GCC results in an error “Error: gcc 9.3.0 is already installed”. GCC was not installed before
brew update && brew install gcc. I am not sure why it is failing with “GCC is already installed”.
I am obviously missing something.
How do I install GCC on OS X?