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

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

On Debian possible default full paths are:

/usr/bin/tor - from package: tor
/usr/sbin/tor - from package: tor

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