gfan_latticeideal: 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_latticeideal - from package: gfan

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