What version of ruby ​​is used with cygwin?

I use cygwin and install ruby ​​on them, so I don’t have much experience with ruby. I always get a lot of errors that this version is buggy in order to use the fix, and much more ... So my question is, what version of ruby ​​use with cygwin, which circumvented all these problems?

+1
windows ruby cygwin
source share
1 answer

I recommend installing the latest version from rubyinstaller.org , as well as devkit from the same page. When you install it, choose the option of adding ruby ​​to your path.

In order for gem and other batch files to work correctly with cygwin, you can add something like this to your .bash_profile:

ruby=`which ruby|perl -pe 's/\/[^\/]*$//'` for i in `/bin/ls -1 $ruby/*.bat` do alias `basename "$i" .bat`=$i done 
+5
source share

All Articles