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

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

On Debian possible default full paths are:

/usr/lib/plan9/bin/fortune - from package: 9base
/var/lib/wims/public_html/bin/fortune - from package: wims

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