dh-make-gosa: 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

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/dh-make-gosa - from package: gosa-dev

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