makegdbm: 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/makegdbm - from package: perdition

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