hg-viz: 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/hg-viz - from package: mercurial

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