tm_mathematica: 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_mathematica - from package: TeXmacs

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