i686-w64-mingw32-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 CentOS possible default full paths are:

/usr/bin/i686-w64-mingw32-gcc-ranlib - from package: mingw32-gcc

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