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

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