DiscreteHedging: 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/DiscreteHedging - from package: quantlib-examples

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