xpath: 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/xpath - from package: perl-XML-XPath

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

On Debian possible default full paths are:

/usr/bin/xpath - from package: libxml-xpath-perl

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