cc: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/cc - from package: gcc
/usr/lib64/icecc/bin/cc - from package: icecream
/usr/lib/icecc/bin/cc - from package: icecream

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/lib/icecc/bin/cc - from package: icecc

You may install the required package with command apt-get install {package}
Error in other languages:
cc: bevel nie gevind nie
cc: comandă negăsită
cc: comando não encontrado
cc: commande introuvable
cc: command not found
cc: käsku ei ole
cc: không tìm thấy lệnh
cc: komanda nerasta
cc: Kommando nicht gefunden.
cc: kommandot finns inte
cc: komut yok
cc: nie znaleziono polecenia
cc: níor aimsíodh an t-ordú
cc: no se encontró la orden
cc: no s'ha trobat l'ordre
cc: opdracht niet gevonden
cc: parancs nem található
cc: perintah tidak ditemukan
cc: príkaz nenájdený
cc: příkaz nenalezen
cc: команда не найдена
cc: командата не е открита
cc: 命令找不到
cc: コマンドが見つかりません