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

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