wayland-scanner: 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/wayland-scanner - from package: libwayland-dev

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