gap.o: 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/lib/x86_64-linux-gnu/gap/bin/gap.o - from package: gap-dev

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