cake: 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/cake - from package: coffee-script
/usr/lib/node_modules/coffee-script/bin/cake - from package: coffee-script

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

On Debian possible default full paths are:

/usr/bin/cake - from package: cakephp-scripts

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