当我检查gcc的位置时,我得到正确的输出。但是当我尝试获取gcc版本时,我找不到命令。
我已将路径添加到$ PATH
echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/ptladmin/bin:/usr/libexec/gcc
whereis gcc
gcc: /usr/libexec/gcc
gcc --version
-bash: gcc: command not found
我正在尝试安装一个pakcage,我不断获得configure: error: no acceptable C compiler found in $PATH
uname -a
Linux deehxpy011ccpra 2.6.18-419.el5 #1 SMP Wed Feb 22 22:40:57 EST 2017 x86_64 x86_64 x86_64 GNU/Linux