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

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