tm_gs: 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/libexec/TeXmacs/bin/tm_gs - from package: TeXmacs

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