hwloc-distances: 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/hwloc-distances - from package: hwloc

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

On Debian possible default full paths are:

/usr/bin/hwloc-distances - from package: hwloc-nox
/usr/bin/hwloc-distances - from package: hwloc

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