bg-installer: 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/bg-installer - from package: libbg1-dev

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