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

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