codeblocks: 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/codeblocks - from package: codeblocks

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