apertium-gen-modes: 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/apertium-gen-modes - from package: apertium

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