yacg: 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/yacg - from package: perl-Config-Generator

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