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

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

On Debian possible default full paths are:

/usr/bin/cpack - from package: cmake

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