步骤1:安装之前是否有安装: gcc --version g++ --version 步骤2:进行安装: sudo apt-get install gcc sudo apt-get install g++