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

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