dpkg-buildflags: 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/dpkg-buildflags - from package: dpkg-dev

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

On Debian possible default full paths are:

/usr/bin/dpkg-buildflags - from package: dpkg-dev

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