Li said:
Hi all,
I install a Ruby version from within Cygwin. 1) How do I use
Interreactive ruby from Cygwin? 2) How do I query Ruby from Cygwin? 3)
Which text editor do you guys prefer when working under Cygwin?
Thanks,
Li
Well, before the anti-cygwin folks jump in here
1. Just open a Cygwin command window (or an xterm) and type "irb" at the
prompt.
2. I'm not sure what you mean by "query Ruby"?
3. Cygwin has vim, emacs and xemacs. I prefer vim. If you have Cygwin X,
you also will have "gvim".
Other notes:
1. If you download and install the "gem" tarball, RubyGems works as
advertised.
2. I have not tried the Cygwin compile/link toolchain with C extensions,
so I don't know if that works or not. That's the main reason people
don't like the Cygwin port -- it's confusing for all except "pure Ruby"
to have to deal with three different compilers -- Microsoft's, "mingw"
and Cygwin's.
If you need to deal with non-Ruby extensions, my recommendation would be
to get the one-click installer and use the precompiled Gems, rather than
trying to mess with Cygwin. But if you're dealing with pure Ruby, Cygwin
is fine.