gdal_contrast_stretch: 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

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

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