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

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

On Debian possible default full paths are:

/usr/bin/compute_all - from package: sloccount

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