gendef: 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/gendef - from package: mingw-w64-tools

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