aarch64-linux-gnu-ranlib: 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/aarch64-linux-gnu-ranlib - from package: binutils-aarch64-linux-gnu

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

On Debian possible default full paths are:

/usr/bin/aarch64-linux-gnu-ranlib - from package: binutils-aarch64-linux-gnu

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