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

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