aa.pl: 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/share/ledgersmb/bin/aa.pl - from package: ledgersmb
/usr/share/sql-ledger/bin/lynx/aa.pl - from package: sql-ledger
/usr/share/sql-ledger/bin/mozilla/aa.pl - from package: sql-ledger

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