gcc-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 Debian possible default full paths are:

/usr/bin/gcc-ranlib - from package: gcc

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