#更新包列表 $ sudo apt update #安装GCC 1、方法一: $ sudo apt-get build-dep gcc 2、方法二: $ sudo apt-get install build-essential #查看GCC版本 $ gcc --version