cgdisk: 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/sbin/cgdisk - from package: gdisk

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

On Debian possible default full paths are:

/sbin/cgdisk - from package: gdisk

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