xapian-metadata: 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/xapian-metadata - from package: xapian-core

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

On Debian possible default full paths are:

/usr/bin/xapian-metadata - from package: xapian-tools

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