giftogd2: 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 CentOS possible default full paths are:

/usr/bin/giftogd2 - from package: gd-progs

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/giftogd2 - from package: libgd-tools

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