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

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

问题描述

我在我的 mac 上创建了一个新用户帐户,我正在尝试从雪豹默认 1.8.7 更新到当前版本的 ruby​​ (1.9.2).有人可以指点我的教程或解释将我的 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 提出强烈建议.

I'll make a strong suggestion for rvm.

这是一种在不与系统版本冲突的情况下管理多个 Ruby 和 gems 的好方法.

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

我现在补充一下 (4/2/2013),我经常使用 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天全站免登陆