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

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