1. pkg search gcc
2. 选择其中一个进行安装
3.安装完成
saloris11 安装gcc
原文:https://www.cnblogs.com/liumy11111/p/11827276.html