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

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