h2xs: 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/h2xs - from package: perl-devel

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

On Debian possible default full paths are:

/usr/bin/h2xs - from package: perl

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