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

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