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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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