gtk2hsHookGenerator: 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/gtk2hsHookGenerator - from package: gtk2hs-buildtools

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

On Debian possible default full paths are:

/usr/bin/gtk2hsHookGenerator - from package: gtk2hs-buildtools

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