mkdgiff: 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/mkdgiff - from package: directfb

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

On Debian possible default full paths are:

/usr/bin/mkdgiff - from package: libdirectfb-bin

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