basex: 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/basex - from package: basex

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