gdal_wkt_to_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_wkt_to_mask - from package: dans-gdal-scripts

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