如何更新到Ruby 1.8.7 [英] How to update to Ruby 1.8.7

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

问题描述

我是Ruby的新手,所以请多多包涵.我一直在尝试将Ruby更新到1.8.7,并且在Mac OS X(10.5.7)上遇到了很多问题.

I am new to Ruby, so bear with me. I've been trying to update my Ruby to 1.8.7 and just ran into many issues on my Mac OS X (10.5.7).

那么真的,您如何更新到Ruby 1.8.7?

So really, how do you update to Ruby 1.8.7?

谢谢.

推荐答案

最简单的答案是不要". Ruby 1.8.7试图在1.8和1.9之间创建桥接版本,并且社区的共识是这是不必要的,因此在1.9最终确定之前对此几乎没有支持.一般建议要么坚持使用1.8(版本随OS X 10.5一起提供),要么使用Ruby 1.9.

The simplest answer is "don't". Ruby 1.8.7 was an attempt to create bridging release between 1.8 and 1.9, and the consensus of the community was that this was not necessary, so there was little support for it before 1.9 was finalized. The general recommendation is either to stick with 1.8 (the version is supplied with OS X 10.5), or use Ruby 1.9.

MacPorts 具有适用于Ruby 1.8.7和Ruby 1.9的软件包,因此,这可能是最简单的获取方法较新版本的Ruby,而无需修改OS X本身的风险.

MacPorts has packages for Ruby 1.8.7 and Ruby 1.9, so that is probably the easiest way to get newer versions of Ruby without any risk of modifying OS X itself.

更新:正如ajhit406指出的那样, RVM 现在是最佳选择,而不是MacPorts.

UPDATE: As ajhit406 noted, RVM is now the best option, rather than MacPorts.

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

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