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

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