cgm: 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/cgm - from package: cgmanager

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