Robert Klemme
6/12/2008 2:57:00 PM
2008/6/12 James Byrne <byrnejb@harte-lyne.ca>:
> In order to use git on my laptop (MS XPproSP3) I ended up installing the
> cygwin environment. I tried MSysGit but it failed to run and the
> maintainer was, shall we say, less than enthusiastic with my bug report.
>
> Now, everything works from the standard windows dos box. However, when
> I try and run a ruby utility such as gem, rake or rails from within the
> cygwin bash shell window then each gives the same style of error:
>
> $ which rails
> /cygdrive/c/usr/lib/ruby/bin/rails
> $ rails
> c:\usr\lib\ruby\bin\ruby.exe: No such file or directory --
> /cygdrive/c/usr/lib/r
> uby/bin/rails (LoadError)
> $
> $ which gem
> /cygdrive/c/usr/lib/ruby/bin/gem
> $ gem list
> c:\usr\lib\ruby\bin\ruby.exe: No such file or directory --
> /cygdrive/c/usr/lib/r
> uby/bin/gem (LoadError)
> $
> $ which rake
> /cygdrive/c/usr/lib/ruby/bin/rake
> $ rake
> c:\usr\lib\ruby\bin\ruby.exe: No such file or directory --
> /cygdrive/c/usr/lib/r
> uby/bin/rake (LoadError)
>
> I am not having this problem with anything else and so I am first asking
> for help here since I expect the cygwin people will turn me to this
> forum in the end in any case.
Hm, the path to your ruby.exe looks suspicious. What's the output of
"type -a" at a bash prompt? For me it's this:
16:55:17 ~$ type -a ruby
ruby is /usr/bin/ruby
ruby is /bin/ruby
ruby is /usr/bin/ruby
Also, what does echo "$PATH" output? Maybe you are pulling the wrong Ruby.
Did you use the Ruby package that comes with cygwin or did you install
from sources?
Kind regards
robert
--
use.inject do |as, often| as.you_can - without end