Setup Xcode Open Terminal and Execute sudo xcode-select --install Installing HomeBrew (Native Apple Silicon M1) Open Terminal and Write One By One This Will Install The Latest Brew For M1 Chip /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" echo “export PATH=/opt/homebrew/bin:$PATH” >> ~/.zshrc
//Restart The Terminal brew install gcc brew install cmake