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

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