bg5+latex: 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 CentOS possible default full paths are:

/usr/bin/bg5+latex - from package: texlive-east-asian

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/bg5+latex - from package: latex-cjk-chinese

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