geographiclib-get-magnetic: 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/sbin/geographiclib-get-magnetic - from package: GeographicLib

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

On Debian possible default full paths are:

/usr/sbin/geographiclib-get-magnetic - from package: geographiclib-tools

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