i586-mingw32msvc-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/i586-mingw32msvc-ranlib - from package: mingw32-binutils

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