gdal_make_ndv_mask: 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/gdal_make_ndv_mask - from package: dans-gdal-scripts

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