Ubuntu中gcc not found找不到gcc。
Command 'gcc' not found, but can be installed with:
apt install gcc
尝试输入apt install gcc后出现很多代码,然后提示失败
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
根据提示输入apt-get update
更新完成后再重新安装gcc
输入代码gcc --version查看gcc版本,就成功啦!
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.