1. 首先更新一下源

sudo apt update

2. 之后安装build-essential

sudo apt install build-essential

3. 验证

gcc
出现以下内容则是安装成功
gcc: fatal error: no input files
compilation terminated.

posted on 2021-10-10 21:45  飞飞乐园  阅读(130)  评论(0编辑  收藏  举报