thrift: 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 Debian possible default full paths are:

/usr/bin/thrift - from package: thrift-compiler

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