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

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