grib_distance: 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 CentOS possible default full paths are:

/usr/bin/grib_distance - from package: grib_api

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/grib_distance - from package: libgrib-api-tools

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