ids2ngram: 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/ids2ngram - from package: sunpinyin-utils

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