bg5latex: 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/bg5latex - 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/bg5latex - from package: latex-cjk-chinese

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