@peekay123 had some issues previously though everything was installed.
It would be good to uninstall the various old tools, reinstall MinGW and also set the $PATH properly.
I have shifted out the thread that i wrote (previously private) and hope it helps!