xapian-check: 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-check - 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-check - from package: xapian-tools

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