mayavi2: 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/mayavi2 - from package: Mayavi

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/mayavi2 - from package: mayavi2

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