我对 Linux 真的很陌生。对于工作,我需要执行一个脚本,但我缺少一个要求 (gcc)
当我尝试下载它时。它说我已经安装了 gcc。
当我尝试 gcc --version
时仍然找不到命令。
我正在使用
输出:
yobjorn@yoga-y:~$ gcc --version
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
yorbjorn@yoga-y:~$ sudo apt install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version (4:10.2.0-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 114 not upgraded.
yorbjorn@yoga-y:~$ gcc -v
Command 'gcc' not found, but can be installed with:
sudo apt install gcc
我错过了什么?