I didn't know! I just installed Ruby the "regular" way, and wanted to be able
to invoque it from the Cygwin shell.
For instance, when using gem:
c:\ruby\bin\ruby.exe: No such file or directory -- /cygdrive/c/ruby/bin/gem
(LoadError)
Did you install rubygems in the same way as you installed your
cygwin ruby? The paths are setup with respect to the ruby you are
using it with.
I have the feeling that ruby is lost between the Windows and the Cygwin way of
naming directories.
They are effectively two separate installs. You probably want your
bashrc or _bashrc to sort out the paths properly for cygwin as
well. it should not be looking for ruby stuff in /cygrdrive/c/ruby
because that is the C:\ruby directory that the Windows setup uses,
which has ruby built against different DLL files. The default ruby
install will put ruby in /usr/local/bin/ruby and so on. And ruby
built from sources does not have rubygems built in.
Hugh