gfan_tolatex: 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 Debian possible default full paths are:

/usr/bin/gfan_tolatex - from package: gfan

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