git-receive-pack: 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/git-receive-pack - from package: git

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

On Debian possible default full paths are:

/usr/bin/git-receive-pack - from package: git

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