ldapvi: 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 CentOS possible default full paths are:

/usr/bin/ldapvi - from package: ldapvi

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/ldapvi - from package: ldapvi

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