未找到命令“gcc”,但仍已安装

时间:2021-03-11 11:01:30

标签: gcc

我对 Linux 真的很陌生。对于工作,我需要执行一个脚本,但我缺少一个要求 (gcc)

当我尝试下载它时。它说我已经安装了 gcc。

当我尝试 gcc --version 时仍然找不到命令。

我正在使用

  • Pop!_OS 20.10
  • GNOME 3.38.3 版

输出:

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

我错过了什么?

0 个答案:

没有答案