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

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

On Debian possible default full paths are:

/usr/bin/tidy - from package: tidy

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