mlpack_allknn: 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/mlpack_allknn - from package: mlpack-bin

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

On Debian possible default full paths are:

/usr/bin/mlpack_allknn - from package: mlpack-bin

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