I'm using cygwin and install on them ruby, so cause I don't have much experiences with ruby I always get much error that those version is buggy to use fix, and many more... So my question is what version of ruby use with cygwin, that bypass all those problems?
Asked
Active
Viewed 1,683 times
1
-
You don't need Cygwin to use Ruby. There are native Win32 versions. – cHao Jan 03 '12 at 03:51
-
what is that native Win32 version? – Ivan Pericic Jan 03 '12 at 03:53
-
the newest version seems that have aloso some bugs .. – Ivan Pericic Jan 03 '12 at 03:54
-
http://www.ironruby.net/, http://rubyforge.org/projects/rubyinstaller/, etc. IronRuby is .net, and the other seems to be built with MinGW. – cHao Jan 03 '12 at 04:06
1 Answers
5
I recommend installing the latest version from rubyinstaller.org as well as the devkit from the same page. When you install it choose the option to add ruby to your path.
To get gem and the other batch files working correctly from 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

pguardiario
- 53,827
- 19
- 119
- 159