wpa_gui: 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/sbin/wpa_gui - from package: wpagui

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