cygwin使用什么版本的ruby? [英] What version of ruby use with cygwin?

查看:272
本文介绍了cygwin使用什么版本的ruby?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用cygwin和安装在他们的ruby,所以,因为我没有太多的经验与ruby我总是得到很多错误,这些版本是buggy使用fix,还有更多...所以我的问题是什么版本的ruby使用cygwin,绕过所有这些问题?

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?

推荐答案

我建议安装从 ruby​​installer.org 以及来自同一页面的devkit。
当你安装它选择选项添加ruby到你的路径。

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.

要获得gem和其他批处理文件从cygwin正常工作,你可以添加类似这到你的.bash_profile:

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

这篇关于cygwin使用什么版本的ruby?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆