先安装brew:
https://blog.csdn.net/weixin_38716347/article/details/123838344
安装xcode:
xcode-select --install
安装gcc:
brew install gcc
检测gcc版本:
gcc -v
其他命令:
清理brew:brew cleanup
brew cleanup gcc
重新安装gcc: brew reinstall gcc
先安装brew:
https://blog.csdn.net/weixin_38716347/article/details/123838344
安装xcode:
xcode-select --install
安装gcc:
brew install gcc
检测gcc版本:
gcc -v
其他命令:
清理brew:brew cleanup
brew cleanup gcc
重新安装gcc: brew reinstall gcc