mapivi: 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/mapivi - from package: mapivi

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