mia-2dseries-segdistance: 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/mia-2dseries-segdistance - from package: mia-tools

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