restdist: 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/lib/phylip/bin/restdist - from package: phylip

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