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

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

On Debian possible default full paths are:

/usr/bin/ctest - from package: cmake

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