ap-gl: 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/ap-gl - from package: ap-utils

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