gmock_gen: 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/gmock_gen - from package: google-mock

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