ubuntu安装gcc

sudo apt-get install build-dep gcc

如果出现错误可以

sudo apt-get update

更新后再执行

原文地址:https://www.cnblogs.com/xieweiwei/p/3553832.html