cheese: 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/cheese - from package: cheese

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

On Debian possible default full paths are:

/usr/bin/cheese - from package: cheese

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