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

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