mgd77togmt: 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/mgd77togmt - from package: GMT

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

On Debian possible default full paths are:

/usr/lib/gmt/bin/mgd77togmt - from package: GMT

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