gendir: 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/lib/mrtrix/bin/gendir - from package: mrtrix

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