createmodule.sh: 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/share/Modules/bin/createmodule.sh - from package: environment-modules

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