From: Dave Montalvo Date: 2005-11-23T11:01:36+09:00 Subject: Re: Ruby and cygwin: supported? ------=_Part_48_9823255.1132711290485 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline to invoke a win version of ruby from the cygwin shell, just add an alias to it in your .profile file: alias ruby=3D'/cygdrive/c/ruby/bin/ruby' dave On 11/22/05, Jacob Quinn Shenker wrote: > > I ran into this problem a while ago: Uninstall your native Windows > version, and get the cygwin version. It's really hard (impossible, > maybe) to make the native version play nicely with cygwin. I also had > to recompile Ruby from source, as one of the bundled cygwin binaries > kept crashing. > > Jacob > > On 11/22/05, Hugh Sasse wrote: > > On Tue, 22 Nov 2005, Pascal Sartoretti wrote: > > > > > Robert Klemme wrote: > > > > What exactly do you mean by this? cygwin.com maintains a ruby > package so > > > > in a way you can say it's supported. > > > > > > I didn't know! I just installed Ruby the "regular" way, and wanted to > be able > > > to invoque it from the Cygwin shell. > > > > > > > Which things didn't work for you? > > > > > > 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. > > > > > > Pascal > > > > > Hugh > > > > > ------=_Part_48_9823255.1132711290485--