sphinx_lm_sort: 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 Debian possible default full paths are:

/usr/bin/sphinx_lm_sort - from package: sphinxbase-utils

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