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

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

On Debian possible default full paths are:

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

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