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

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

On Debian possible default full paths are:

/usr/bin/cloc - from package: cloc

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