Help with Ruby under cygwin

Setup.rb however creates a directory called /usr/bin/ruby
so now in cygwin if I get:

$ ruby
bash: /usr/bin/ruby: is a directory

I don’t know what you have done here but it seems to me that you made
a mistake around step #1.

If you have windows ruby installed too, make sure its directory isn’t
in your path before cygwin ruby and review any RUBY* environments
variables (unset RUBYOPT). Maybe also check $PATH so that no windows
commands with the same name as cygwin commands are used instead of
cygwin commands. Anything else should work smoothly.

Sorry I can’t be of much more help. Two quick thoughts:

i) Is there any reason you want to use rubygems 0.8.11 ? The current
version is 1.2.0 : http://rubyforge.org/frs/?group_id=126

ii) If you want a simple install of ruby for you and your colleagues
to use (principally with rake in mind), could you not just use the one-
click installer ? (http://rubyinstaller.rubyforge.org/wiki/wiki.pl) I
think it comes with rake, and several other gems, pre-installed.

Chris

i) ooops - I must have used a stale link somewhere :slight_smile:
my problems could all have been fixed bugs !!!
Thanks for the slap !

ii) we use cygwin so we have a similar environment on the 'nix boxes and
XP Pcs. and have been using gnu-make for some old scripts, and have
bash and perl scripts and the like that run on both, we also use
open-ssh scp rsync wget etc. the path difference between the two
complicates things. My plan was to test both.

It seems like packaging everything for a “one command” cygwin/ruby
install (unzip this to temp, do “bash ruby ./setup.rb” is a fairly easy
way. I already have a pre-downloaded maintained .zip of cygwin that is
“install from local directory” ready.

Chris L. wrote:

Sorry I can’t be of much more help. Two quick thoughts:

i) Is there any reason you want to use rubygems 0.8.11 ? The current
version is 1.2.0 : http://rubyforge.org/frs/?group_id=126

ii) If you want a simple install of ruby for you and your colleagues
to use (principally with rake in mind), could you not just use the one-
click installer ? (http://rubyinstaller.rubyforge.org/wiki/wiki.pl) I
think it comes with rake, and several other gems, pre-installed.

Chris