latex: 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/latex - from package: texlive-latex

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

On Debian possible default full paths are:

/usr/bin/latex - from package: texlive-latex-base

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