gmock-config: 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/gmock-config - from package: gmock-devel

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