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

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

On Debian possible default full paths are:

/usr/bin/cmake - from package: cmake

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