如何在Mac上将Ruby更新到1.9.x? [英] How to update Ruby to 1.9.x on Mac?

查看:62
本文介绍了如何在Mac上将Ruby更新到1.9.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上创建了一个新的用户帐户,并且尝试将雪豹的当前版本(1.9.2)从雪豹的默认版本1.8.7更新到当前版本.有人可以指出我的教程或解释将Mac上的Ruby从1.8更新到1.9.2的最佳方法吗?谢谢

I have created a new user account on my mac and I am trying to update to the current version of ruby on it (1.9.2) from the snow leopard default of 1.8.7. Can somebody point me to tutorial or explain the best method to update Ruby on my mac from 1.8 to 1.9.2? Thanks

推荐答案

我会强烈建议 rvm .

这是在不与系统版本冲突的情况下管理多个红宝石和宝石集的好方法.

It's a great way to manage multiple Rubies and gems sets without colliding with the system version.

我现在要补充一点(2013年4月2日),我经常使用 rbenv ,因为我的需求很简单. RVM很棒,但是它具有很多我从未需要的功能,因此我在某些计算机上拥有它,在台式机和笔记本电脑上具有rbenv.两者都值得一试,看看哪种最适合您的需求.

I'll add that now (4/2/2013), I use rbenv a lot, because my needs are simple. RVM is great, but it's got a lot of capability I never need, so I have it on some machines and rbenv on my desktop and laptop. It's worth checking out both and seeing which works best for your needs.

这篇关于如何在Mac上将Ruby更新到1.9.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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