dune-git-whitespace-hook: 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/dune-git-whitespace-hook - from package: libdune-common-dev

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