gl-query-rc: 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

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/gl-query-rc - from package: gitolite

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