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

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