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

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