rosdistro_build_cache: 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/rosdistro_build_cache - from package: python-rosdistro

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