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

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