J
Jay Levitt
I've been using the Cygwin bash shell to do most of my command-line ruby
work, since it's a much nicer environment than command.com. However, since
my apps themselves are kicked off by Eclipse, using the standard
interpreter, I end up having to maintain two ruby builds, two sets of gems,
etc.
Worse, now that I upgraded to rake 0.7.1 with rails 1.1, it's somehow
looking in the wrong place for everything; in fact, bash seems totally
confused as to which ruby it's really running:
$ which ruby
c:\dev\ruby\bin\ruby.exe
[So it says I'm running the non-cygwin version]
$ ruby --version
ruby 1.8.4 (2005-12-24) [i386-cygwin]
[But actually seems to run the cygwin version!]
$ c:/dev/ruby/bin/ruby --version
ruby 1.8.2 (2004-12-25) [i386-mswin32]
$ /usr/local/bin/ruby --version
ruby 1.8.4 (2005-12-24) [i386-cygwin]
My $PATH puts /usr/local/bin first, and /cygdrive/c/dev/ruby/bin way down
near the bottom.
So... I'm thinking of blowing the whole mess away. Is there any way to get
cygwin bash to run the mswin ruby.exe successfully? Or at least get them
to share gem libraries? I remember that this used to crash.
And anyone have any idea why it's launching the right ruby when I type
"ruby", but giving the wrong one to "which" (and, I presume, launching rake
with the wrong one)?
Jay Levitt
work, since it's a much nicer environment than command.com. However, since
my apps themselves are kicked off by Eclipse, using the standard
interpreter, I end up having to maintain two ruby builds, two sets of gems,
etc.
Worse, now that I upgraded to rake 0.7.1 with rails 1.1, it's somehow
looking in the wrong place for everything; in fact, bash seems totally
confused as to which ruby it's really running:
$ which ruby
c:\dev\ruby\bin\ruby.exe
[So it says I'm running the non-cygwin version]
$ ruby --version
ruby 1.8.4 (2005-12-24) [i386-cygwin]
[But actually seems to run the cygwin version!]
$ c:/dev/ruby/bin/ruby --version
ruby 1.8.2 (2004-12-25) [i386-mswin32]
$ /usr/local/bin/ruby --version
ruby 1.8.4 (2005-12-24) [i386-cygwin]
My $PATH puts /usr/local/bin first, and /cygdrive/c/dev/ruby/bin way down
near the bottom.
So... I'm thinking of blowing the whole mess away. Is there any way to get
cygwin bash to run the mswin ruby.exe successfully? Or at least get them
to share gem libraries? I remember that this used to crash.
And anyone have any idea why it's launching the right ruby when I type
"ruby", but giving the wrong one to "which" (and, I presume, launching rake
with the wrong one)?
Jay Levitt