xquery2plan: 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/xquery2plan - from package: galax-extra

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