Sort:  

Did you use the cygwin terminal or the windows cmd environment? You must use the cygwin terminal.

I used the cygwin terminal

I have now gem installed the bundler, but getting different errors