go学习-WSL安装gcc

1. 首先更新一下源

sudo apt update

2. 之后安装build-essential

sudo apt install build-essential

3. 验证

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

所有博客均为自己学习的笔记。如有错误敬请理解。
原文地址:https://www.cnblogs.com/tangtang-benben/p/15390853.html