scan-build: 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/scan-build - from package: clang-analyzer

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

On Debian possible default full paths are:

/usr/bin/scan-build - from package: clang

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