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

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

On Debian possible default full paths are:

/usr/bin/fop - from package: fop

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