gm-restore_database: 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/sbin/gm-restore_database - from package: gnumed-server

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