pg_resetxlog: 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/pg_resetxlog - from package: postgresql-server

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

On Debian possible default full paths are:

/usr/lib/postgresql/9.4/bin/pg_resetxlog - from package: postgresql-9.4

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