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

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

On Debian possible default full paths are:

/usr/sbin/logrotate - from package: logrotate

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