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

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