gdallocationinfo: 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/gdallocationinfo - from package: gdal-bin

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