localedef: 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/localedef - from package: glibc-common

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

On Debian possible default full paths are:

/usr/bin/localedef - from package: libc-bin

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