# Instant Rails and cygwin problem

**URL:** <https://www.ruby-forum.com/t/instant-rails-and-cygwin-problem/92010>\
**Category:** Rails\
**Created:** [April 14, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/instant-rails-and-cygwin-problem/92010 "2007-04-14T14:42:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geolev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/8baadc/32.png) [@geolev](https://www.ruby-forum.com/u/geolev)\
**Post date:** [April 14, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/instant-rails-and-cygwin-problem/92010/1 "2007-04-14T14:42:23Z")

</div>

Hi,

Has anyone dealt with this issue. I installed Instant Rails and then  
setup cygwin as my shell. Everything except rake seems to work. When I  
try to use rake from within cygwin, I get the following error:

rake --version

bash: /cygdrive/c/InstantRails/ruby/bin/rake: E:/Dev/RubyDev/  
rubyinstaller/svn-repo/installer-win2/ruby/bin/ruby^M: bad  
interpreter: No such file or directory

It seems to be complaining about an unexpected carriage return (^M).

If I run rake --version from a plain old DOS prompt, it works fine.  
Does anyone know how to fix this?

Thanks,  
George
