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

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